Kuuba_
Kuuba_
CDCloudflare Developers
Created by Kuuba_ on 2/27/2024 in #workers-help
No such module "node:buffer". imported from "worker.js"
Hello. I'm trying to deploy basic-auth worker - https://developers.cloudflare.com/workers/examples/basic-auth/ but I'm getting following error:
Uncaught Error: No such module "node:buffer". imported from "worker.js" (Code: 10021)
Uncaught Error: No such module "node:buffer". imported from "worker.js" (Code: 10021)
when I click "Save and deploy". I have worker.js file (content as in docs) and wrangler.toml file with compatibility_flags (content below). Do you have any idea how can I fix this?
compatibility_flags = [ "nodejs_compat" ]
compatibility_flags = [ "nodejs_compat" ]
3 replies