You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi thanks for this example. Just a short question: I get in ./lib/posts.ts
Module not found: Can't resolve 'fs'
any idea why this is happening?
Thanks, and all the best, Matthias
The text was updated successfully, but these errors were encountered:
Hi Matthias,
Mmmh, weird. Usually this error happens when someone tries to call the
Node.js `fs` module from the browser,
but since the import statement for the `fs` is in `./lib/posts.ts` instead
of the app directory the error shouldn't occur.
Perhaps this behavior changed during the latest Next.js version? I'm not
sure...sorry I can't be of more help.
Best
Hi thanks for this example. Just a short question: I get in ./lib/posts.ts
Module not found: Can't resolve 'fs'
any idea why this is happening?
Thanks, and all the best, Matthias
The text was updated successfully, but these errors were encountered: