Cloudflare Pages - Node issues with Remix when trying to deploy

What is the name of the domain?

my-remix-app-2kg.pages.dev

What is the error message?

✘ [ERROR] 2 error(s) and 0 warning(s) when compiling Worker.

What is the issue you’re encountering

Add the “nodejs_compat” compatibility flag to your Pages project and make sure to prefix the module name with “node:” to enable Node.js compatibility.

What steps have you taken to resolve the issue?

I have the compatibility set in my wrangler.toml and in the functions within settings. I get the error for crypto and stream.
I have not used crypto or stream, so I am unsure why this does not work.

What are the steps to reproduce the issue?

I have setup a remix app using the cloudflare remix package (from cloudflare).
I have added prisma, remix-auth and bcryptjs.
I have followed the forms method of remix-auth and it all works locally.

Any advice would be helpful, this is my first time trying Cloudflare pages.

Screenshot of the error

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.