solana-web3.js icon indicating copy to clipboard operation
solana-web3.js copied to clipboard

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

Open cSarcasme opened this issue 1 year ago • 2 comments

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

cSarcasme avatar Sep 28 '23 10:09 cSarcasme