how to change wrangler version to 3.80 on cf
hi all, how do i make Cloudflare build my pages sveltekit with wrangler@latest ? it keeps building it with 3.76 not 3.88 , i have compatibility date set up to latest one which is 11 on cf dashboard ; i need this version because i got require of "node:crypto Error in my sveltekit pages , and isees this PR saying it fixes it ? https://github.com/cloudflare/workers-sdk/issues/4725
GitHub
🐛 BUG: Uncaught Error: Dynamic require of "node:crypto" is not supp...
Which Cloudflare product(s) does this pertain to? Workers Runtime, Wrangler core What version(s) of the tool(s) are you using? [email protected] What version of Node are you using? v20.2.0 What opera...
1 Reply
this only happens for prod but not local env
on local env,
i got
[ERROR] service core:user:stickynotes: Uncaught SyntaxError: Identifier '__cf_cjs' has already been declared
at null.<anonymous> (z9bf1tqddfj.js:971)
when runniign wrangler pages dev
but npm run dev is fine
on prod : i got dynamic require node:crypto
error and isee cf is building it writh wrangler 3.76 , i used 3.88 in local
nvm it is typesense, it hses node api