solana-labs / solana-web3.js

Solana JavaScript SDK
https://solana-labs.github.io/solana-web3.js
MIT License
2.08k stars 839 forks source link

solana web3js module not found: can t resolve encoding in terminal #1637

Open cSarcasme opened 11 months ago

cSarcasme commented 11 months ago

Capture d’écran 2023-09-28 122059

Overview

Error in my next terminal.

Steps to reproduce

For see the error just install solana web3js and node-fetch on your next application

Description of bug

⚠ ./node_modules/@solana/web3.js/node_modules/node-fetch/lib/index.js Module not found: Can't resolve 'encoding' in 'C:\Users\haatman\Documents\lottery2\dbq2lottery\node_modules\@solana\web3.js\node_modules\node-fetch\lib'

⚠ ./node_modules/@solana/web3.js/node_modules/node-fetch/lib/index.js Module not found: Can't resolve 'encoding' in 'C:\Users\haatman\Documents\lottery2\dbq2lottery\node_modules\@solana\web3.js\node_modules\node-fetch\lib'

Import trace for requested module: ./node_modules/@solana/web3.js/node_modules/node-fetch/lib/index.js ./node_modules/@solana/web3.js/lib/index.cjs.js

I ty by advance for anyhelp i have really dont find any solution for that ty

buffalojoec commented 11 months ago

Hello, which version of @solana/web3.js are you using? Also which Node version?

steveluscher commented 11 months ago

This doesn’t affect the operation of the app or the build, right?