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
[5.9.0] Error: Prisma Client is unable to run in an edge runtime. As an alternative, try Accelerate: https://pris.ly/d/accelerate. #22893
Comments
(Note: This looks like a duplicate of #22886) @mohe22 could you provide more details? What is your Prisma version? Do you get this error locally or on deployment? In the former case, are you using Node.js or other runtime? In the latter case, where are you deploying? Are you using any frameworks, bundlers, etc? It would be very helpful for us to resolve your problem if you could provide the information requested by the bug report template and a reproduction we can run. Note that if you get this error when actually deploying to the edge, it is currently expected as Prisma Client support on the edge is currently a work in progress (#21394). However, given multiple issues opened about this today, I suspect the error might not be expected for you, and we'd appreciate it if you could help us provide the information necessary for us to help you. |
no I'm getting the error locally |
I changed the version "prisma": "^5.10.0-integration-fix-client-exports-map.11", however still have the issue |
@mohe22 Make sure to remove the caret Note, you can do the following
If there is still a problem after that, please provide a minimal reproduction, here is recent one as an example: https://github.com/darthmaim-reproductions/prisma-prisma-22877 |
I solved the error by |
I tried the above ones it did not work with me. |
@mohe22 It would help us if you can provide a minimal reproduction of your problem, like I mentioned earlier, here is recent one as an example: https://github.com/darthmaim-reproductions/prisma-prisma-22877 With that we would then try to reproduce on our side, and optimally we can see with that reproduction:
Is that something you could send us today maybe? |
Hi, I confirm that this works, had the same problem, so changed to 5.8.1, the issue is in version 5.9.0 |
@BernardinoOtais So you are also using Next.js and Next Auth v5? Could you set the version for Prisma packages to "5.9.1-dev.2" and try again, then let us know if that's fixed? This would help to confirm that everything is fixed for our patch release planned later today. |
Hi Jolg42, did as you asked and it worked, what should I do for production? |
@BernardinoOtais Thanks! Then please wait for the official |
Thanks @Jolg42 |
Next.js Load Failure After Today's Prisma Update and Subsequent Database Interaction Issue After Applying Workaround 🚨🛠️ Today, I updated Prisma to the latest version in my Next.js application and faced a significant issue. Initially, the app failed to load, showing a browser error: "Error: Prisma Client is unable to run in an edge runtime. As an alternative, try Accelerate: https://pris.ly/d/accelerate. If this error is unexpected, please report it at https://github.com/prisma/prisma/issues/new." Workaround Attempt: New Browser Error: javascript Error validating datasource db: the URL must start with the protocol prisma:// Source 29 | } 31 | await db.user.create({ Seeking Guidance: |
No need to post the same message in multiple issues @pavelbe, I already replied to your message here: #22885 (comment) |
https://github.com/prisma/prisma/releases/tag/5.9.1 is now available with the fix ✨ Please create a new issue if you find a bug. |
I'm using Next Auth with next.js 14
The text was updated successfully, but these errors were encountered: