mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 260 forks source link

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 1 year ago

Theo92100 commented 1 year ago

any solution ?

dongdiep00 commented 8 months ago

same problem

rajveersingh-dot commented 7 months ago

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

cclauss commented 4 months ago

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