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
@prisma/client/edge + Cloudflare Worker / wrangler = Could not resolve "os" #19174
Comments
@osejrafael Thanks for this issue! Do you know if this error also happens with a previous version of Prisma, like |
@Jolg42 Yes, I tried rolling back to |
I have been using |
I have the same issue with 4.14.0 :/ |
Thanks all! I'll try a reproduction tomorrow, as this looks like an unexpected regression 👀 In the meantime, I can recommend staying on |
The file
Not sure if it is the root of the problem, but might be useful. |
@alexvuka1 Thanks! I also found that this was the most recent addition, potentially that's the problem here. |
I can confirm I have seen this in the bundled files. We should add a test that no |
I got a reproduction in our ecosystem-tests prisma/ecosystem-tests#3508 after updating wrangler |
Note: after testing some versions. I can confirm it's a regression that happened in |
Note: confirmed fixed on main branch. |
Note: we are planning an official patch release later today. Stay tuned 😉 |
The fix is now available https://github.com/prisma/prisma/releases/tag/4.14.1. Thanks for the report. |
Bug description
It was running just fine. I updated prisma and reinstalled dependencies then did
npx prisma generate --data-proxy
. Generates the client, but right after starting the server withwrangler dev src/index.ts
I getHow to reproduce
wrangler.toml
npx prisma generate --data-proxy
wrangler dev src/index.ts
Expected behavior
Server starts and Prisma edge client works.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: