"Dynamic require of "node:fs" is not supported" but only when using js processor with custom path #27008
Replies: 3 comments 6 replies
|
Hi @AlvesJorge! Can you please confirm if you are observing the same behaviour on Prisma 6.7.0 version as well? If yes, can you provide a minimal reproduction of the issue so that we can investigate? |
1 reply
|
Heres a minimal example: run these commands im assuming its happening because bundlers are trying to bundle the generated files as well. not sure how to fix it. related: egoist/tsup#787 |
5 replies
|
Hi, As we have not heard back from you, we are closing this discussion to keep our discussions organized. Feel free to start a new discussion if this remains relevant. Thank you for being part of the community! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Question
Hey all, hope you are doing well.
I am planning to change to
prisma-clientbut for now I still haveprisma-client-js.Using it with no custom path or with
../node_modules/.prisma/clientworks perfectly fine as usual, however, when setting it to../generated/prisma/clientI get the error:Error: Dynamic require of "node:fs" is not supportedWhy does this happen? I'm more curious than I am in "need of help".
How to reproduce (optional)
No reproduction sorry!
Expected behavior (optional)
I would expect it to not throw this error just because the path changed :)
Information about Prisma Schema, Client Queries and Environment (optional)
All reactions