fs error when deploy project in vercel #85866
Replies: 1 comment
-
|
Likely happening because you are importing from The real fix is to refactor your modules, so that client modules do not import from modules that in turn import Node.js native modules. However, for whatever reason, this is either difficult to do in some projects, and the typical solution has been to silence the error, and tell webpack to load an empty module in place of It is also possible to do this with Turbopack. In your case I am going to assume you are migrating to Turbopack, so this section of our upgrade guide: https://nextjs.org/docs/app/guides/upgrading/version-16#resolve-alias-fallback is likely going to help. That being said, this problem should also be happening locally, in your dev environment. Run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
how i solve the problem
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions