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
✘ [ERROR] Could not resolve "assert"
../../node_modules/.pnpm/@[email protected]/node_modules/@anthropic-ai/bedrock-sdk/auth.mjs:1:19:
1 │ import assert from 'assert';
╵ ~~~~~~~~
The package "assert" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.
✘ [ERROR] Could not resolve "stream"
../../node_modules/.pnpm/@[email protected]/node_modules/@smithy/eventstream-serde-node/dist-es/EventStreamMarshaller.js:2:25:
2 │ import { Readable } from "stream";
╵ ~~~~~~~~
The package "stream" wasn't found on the file system but is built into node.
Add "node_compat = true" to your wrangler.toml file and make sure to prefix the module name with "node:" to enable Node.js compatibility.
The text was updated successfully, but these errors were encountered:
Thanks for the report. I'm not sure we'll be able to prioritize Cloudflare Workers support for the Bedrock SDK in the near term, but we would like to resolve this if it's tractable.
Environment:
Enabled
compatibility_flags = [ "nodejs_compat" ]
inwrangler.toml
https://developers.cloudflare.com/workers/runtime-apis/nodejs/#enable-nodejs-with-workers
The text was updated successfully, but these errors were encountered: