© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Error: Digest method not supported - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
12 replies
sv._.342
Error: Digest method not supported
I want use
n
o
d
e
:crypto module
So i followed this doc
https://developers.cloudflare.com/workers/runtime-apis/nodejs/#:~:text=Log%20in%20to%20the%20Cloudflare%20dashboard%20and%20select,compatibility%20flag%20to%20your%20Preview%20and%20Production%20deployments
.
I added compatibility
_flags
=
[
'nodejs
_compat
'
] in wrangler
.toml
and code
:
import crypto from
'
n
o
d
e
:crypto
'
hash
= crypto
.createHash
(method
)
hash
.update
(date
)
; hash
.update
(email
)
const hdateemail
= hash
.digest
(encoding
)
console
.log
(hdateemail
)
It works perfectly when use
'npm run dev
'
but when use
'npx wrangler dev
'
, it not works
Error
: Digest method not supported
ps
.
I also added flags on cli like
'npx wrangler dev
-
-compatibility
_flags nodejs
_compat
' and not works at all
.
.
Node.js compatibility · Cloudflare Workers docs
Implemented Node
.js runtime APIs and enablement instructions for your Worker project
.
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
▲ error - Provided runtime "edge" is not supported.
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Error: 403 Country, region, or territory not supported.
CD
Cloudflare Developers / workers-and-pages-help
7mo ago
Uncaught Error: Dynamic require of "events" is not supported
CD
Cloudflare Developers / workers-and-pages-help
11mo ago
local agent dev -> "RPC error: Error: Method toJSON does not exist"
CD
Cloudflare Developers / workers-and-pages-help
9mo ago