Migrating to remix vite:dev cloudflare fails to create cookie, crypto is not defined. #8883
Answered
by
sergiodxa
KeiranHines
asked this question in
Q&A
-
I get the following error when trying to create a session cookie with cloudflare on remix:vite version 2.7.2
Any help to fix would be appreciated. I tried adding the installGlobals polyfill but that did not work. Thanks, |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Feb 25, 2024
Replies: 1 comment 8 replies
-
What version of Node are you using? In v20 crypto is global like in CF so it may work. |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
KeiranHines
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Node are you using? In v20 crypto is global like in CF so it may work.