Remix and Vite - 2 error(s) and 0 warning(s) when compiling Worker.
I am trying to use pages for the first time and having an issue when trying to deploy. Working locally, everything works as expected but when building and running I get the error:
2 error(s) and 0 warning(s) when compiling Worker.
2 error(s) and 0 warning(s) when compiling Worker.
This is for:
10:06:22.426 ✘ [ERROR] Could not resolve "crypto"10:06:22.426 10:06:22.426 ../node_modules/cookie-signature/index.js:5:21:
10:06:22.426 ✘ [ERROR] Could not resolve "crypto"10:06:22.426 10:06:22.426 ../node_modules/cookie-signature/index.js:5:21:
and:
10:06:22.428 ✘ [ERROR] Could not resolve "stream"10:06:22.428 10:06:22.428 ../node_modules/stream-slice/index.js:3:24:
10:06:22.428 ✘ [ERROR] Could not resolve "stream"10:06:22.428 10:06:22.428 ../node_modules/stream-slice/index.js:3:24:
I am using the template provided by Cloudflare, I have added the compatibility flag "nodejs_compat" and this is my dependencies: