vite crashes on pg-types
When importing
npm:pg-types@^4.1.0 during SSR, it fails with the following error.
It's caused by a common NPM max compat export pattern below in postgres-bytea.
Update
Found the solution before I can post this, sharing it here. Just add external to your vite.config.js.
0 Replies