You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If using Node >=15.0.0, globalThis.crypto or just crypto should return a Crypto object. It already works natively in Node (Node documentation and MDN) just like in all other environments, so why does remix removes it from the global object?
Actual Behavior
It returns undefined.
The text was updated successfully, but these errors were encountered:
WebCrypto was not added to Node.js globalThis until v19. Prior to that you had to require('node:crypto').webcrypto. Make sure you are using the correct version of Node.js.
What version of Remix are you using?
1.19.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
Just
console.log(globalThis.crypto)
from server code or open https://stackblitz.com/edit/remix-run-remix-fbmasu?file=app%2Fentry.server.tsx and check the console.Expected Behavior
If using Node
>=15.0.0
,globalThis.crypto
or justcrypto
should return aCrypto
object. It already works natively in Node (Node documentation and MDN) just like in all other environments, so why does remix removes it from theglobal
object?Actual Behavior
It returns
undefined
.The text was updated successfully, but these errors were encountered: