Replies: 1 comment
-
You should probably try to avoid using node libs. What are you trying to do? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi community!
I'm using NodeJS v22.0.0, Hono JS and Cloudflare Workers and I'm having an issue with "fs" and "path" modules:
But when I run
wrangler dev src/index.ts
it raise an error:Reading the docs I need to setup my
wrangler.toml
to be compatible with Node addingcompatibility_flags = [ "nodejs_compat" ]
to the file, but I already have it:My tsconfig.json is configured to recognize NodeJS and Cloudflare Workers types, that's why VSCode doesn't recognize any error, it only shows up when running the wrangler dev src/index.ts:
Beta Was this translation helpful? Give feedback.
All reactions