-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during build because of pg cloudflare #2987
Comments
#2978 will supposedly improve this. But like the error message says,
|
This fixed the problem during build but at runtime with client side components it still appears |
Your client-side components shouldn’t be loading pg; even if you can get it to quietly import without errors, that’s a lot of unnecessary code served to clients. |
We're using the
pg
package in a project. Recently, we get this error during build process:The thing is, we are not using cloudflare or cloudflare workers at all. I saw that the
pg-cloudflare
package is in the optional dependencies of thepg
package. For whatever reason, node installs all optional dependencies by default. So I tried installing the packages without the optional dependencies.But now there is this error:
What did I do wrong?
The text was updated successfully, but these errors were encountered: