Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am getting error while working with Nextjs app directory - error ./node_modules/@mapbox/node-pre-gyp/lib/clean.js:8:0 Module not found: Can't resolve 'fs' Import trace for requested module: ./node_modules/@mapbox/node-pre-gyp/lib/ sync ^\.\/.*$ ./node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js ./node_modules/argon2/argon2.js ./node_modules/next-auth-sanity/credentials.js ./node_modules/next-auth-sanity/index.js ./src/lib/auth.ts ./src/lib/index.ts ./src/app/upload/page.tsx #695

Open
Anurag-Dhurwey opened this issue Aug 4, 2023 · 4 comments

Comments

@Anurag-Dhurwey
Copy link

Anurag-Dhurwey commented Aug 4, 2023

No description provided.

@Anurag-Dhurwey Anurag-Dhurwey changed the title I am getting error while working with Nextjs app directory I am getting error while working with Nextjs app directory - error ./node_modules/@mapbox/node-pre-gyp/lib/clean.js:8:0 Module not found: Can't resolve 'fs' Import trace for requested module: ./node_modules/@mapbox/node-pre-gyp/lib/ sync ^\.\/.*$ ./node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js ./node_modules/argon2/argon2.js ./node_modules/next-auth-sanity/credentials.js ./node_modules/next-auth-sanity/index.js ./src/lib/auth.ts ./src/lib/index.ts ./src/app/upload/page.tsx Aug 4, 2023
@Theo92100
Copy link

any solution ?

@dongdiep00
Copy link

same problem

@rajveersingh-dot
Copy link

I'm having same issues here. fs comes with node

@cclauss
Copy link

cclauss commented Apr 14, 2024

For support of Node.js > v17, see the workaround:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants