Skip to content

how do I get the types for node:crypto if I enabled nodejs compatibility? #4822

Closed Answered by mrbbot
pmbanugo asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! 👋 They should, but they aren't at the moment! 😅 We're working on a new automatic generation system for @cloudflare/workers-types that will support auto-generating nodejs_compat types too. In the meantime, you'll need to install @types/[email protected] in addition to @cloudflare/workers-types. Note later versions of @types/node are incompatible with @cloudflare/workers-types, see cloudflare/workerd#1298 for much more information on this and other workarounds.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pmbanugo
Comment options

@pmbanugo
Comment options

Answer selected by pmbanugo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants