[unenv] crypto.createhash is not implemented yet!

My project runs normally in development mode, but I encounter an error when previewing with Wrangler or deploying the project to Cloudflare Pages. Error: [unenv] crypto.createHash is not implemented yet! I have already configured compatibility_flags = ["nodejs_compat_v2"] in wrangler.toml, but the issue persists. Please help me, thank you.
5 Replies
Dario
Darioโ€ข2w ago
Hey @็„ก็•Œ๐“ฆ๐“พ๐“ฌ๐“ฑ๐“ฒ๐“ฎ๐“ฑ ๐Ÿ™‚ crypto.createHash should indeed work, I just checked with our latest wrangler version
Dario
Darioโ€ข2w ago
No description
Dario
Darioโ€ข2w ago
could you double check that you're using the latest wrangler release and let me know if that helps? ๐Ÿ™
็„ก็•Œ๐“ฆ๐“พ๐“ฌ๐“ฑ๐“ฒ๐“ฎ๐“ฑ
This is the version I use "wrangler": "^3.79.0" So it is available in the latest version? I always thought it was because โ€œpagesโ€ not available
Dario
Darioโ€ข2w ago
yes it should be available in the latest version please try 3.80.2 ๐Ÿ™‚ the fact that you're using pages should not matter ๐Ÿ™‚
Want results from more Discord servers?
Add your server