-
-
Notifications
You must be signed in to change notification settings - Fork 422
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
bug: Error: Module not found: Can't resolve 'net'
when using postgres
#634
Comments
Related? drizzle-team/drizzle-orm#753 |
You're trying to use a Nodejs package on edge runtime. Remove the |
Nice. That did it. There's a note in the README:
A light suggestion to include this potential update? However, thank you very much. You saved me a ton of time. |
@juliusmarminge i've not used |
maybe middleware? |
I haven't used middleware as well. Just difference is that I've imported drizzle from postgres-js instead of vercel.
|
Provide environment information
Describe the bug
iOS runs fine. But I get an issue with nextjs.
Error: Module not found: Can't resolve 'net'
Seems this is related to "use client" when used with postgres?
Link to reproduction
None
To reproduce
Replace the db with postgres.
Run
yarn dev
Additional information
No response
The text was updated successfully, but these errors were encountered: