You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.