Next.js Discord

Discord Forum

Upgrading from 12 to 13 in a component library and getting error:

Unanswered
Reddish Egret posted this in #help-forum
Open in Discord
Reddish EgretOP
Module not found: Error: Can't resolve 'fs' in '/design-system/node_modules/next/dist/compiled/gzip-size'

We are using NextJs lightly in our components for things like next/link etc.
How can I resolve the node fs not being there as this didn't happen in the prior version and we use the components lightly.

0 Replies