Need Help - Remix + Vite (Cloudflare Pages)
I migrated my remix application from a nodejs based template to the cloudflare template. On trying to deploy my application on Cloudflare pages, I encounter errors that make the build process fail. The main problem is that I have packages that rely on some node internals and even after turning on the
nodejs_compat
option for the project, the errors still show up. I have attached a downloaded log to help.4 Replies
having this same problem - Drizzle pg libraries can't rely on node internals.
the same,i think pages is not very compatible to fullstack app
Not all node internals are supported. You'll need to use packages which don't rely on those.
For example the pg package, you'd need to use a http/ws driver instead
I am also running into this issue...'stream' and 'crypto' are required somehow in node.js packages and I can't access the original files.
Ah...fixed it. Instead of using
@remix-run/node
you have to switch to @remix-run/cloudflare
.