Skip to content

Deploy to Cloudflare buttons are failing on demos using v0.3 #751

@mattzcarey

Description

@mattzcarey

ai is now a peer dep of agents. Some of these demos are linked in docs which have a Deploy to Cloudflare button which now errors

wrangler 4.56.0

✘ [ERROR] Build failed with 1 error:
  ✘ [ERROR] Could not resolve "ai"
  
      node_modules/agents/dist/client-QZa2Rq0l.js:945:39:
        945 │       const { jsonSchema } = await import("ai");

    You can mark the path "ai" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle. You can also add ".catch()" here to handle this failure at run-time instead of bundle-time.

Raised in cloudflare/ai#345 (comment)

Version:
0.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions