Dynamic require of "node:fs" is not supported
After upgrading prisma to the latest version and exporting the client into a custom folder, when I build the application with esbuild I do have this node:fs problem.
schema.prisma:
3 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.This is a known issue at the moment:
https://github.com/prisma/prisma/issues/27072
We plan to fix it very soon 🙏
GitHub
"Dynamic require of "node:fs" is not supported" but only when using...
Bug description When using version v6.6.0 with a bundler, such as tsup, i get this error: Error: Dynamic require of "node:fs" is not supported at file:///C:/Users/Fishie/Desktop/prisma-fs...