Unable to deploy in Pages despite `nodejs_compat` being set (SvelteKit and `pg`)
Hi, I have the following dependencies:
I have added the
nodejs_compat
flag via the dashboard, and similarly set a compatibility date of 2024-11-11
(this is the earliest date that's selectable that's after 2024-09-23
). My NODE_VERSION
is 20.18.1
and PNPM_VERSION
is 10.8.1
. I still get this error for many packages:3 Replies
I can't prefix the module name since it's in a library, unless I patch it. It should not be this difficult to deploy, so I'm wondering if I'm doing something completely wrong or if the versions are not compatible, though I could not find any documentation to support that.
Full dump
Update: I found a
nodejs_compat_v2
flag, and I tried that. This should really be in the docs, I found it in some old Github issues but I didn't know it's still a thing. Those errors are now gone, but another one showed up. Will start a new post for that.