TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') - already tried all suggestions in this discussion and it still doesn't work #4991
-
I tried to change the version of ethers, deleted node_modules and reinstalled everything and I still get the same issue. Not sure where to go from here.
Here's my code:
deploy.js
Any help would be appreciated, thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
@RichardKoh1 Make sure in your scripts |
Beta Was this translation helpful? Give feedback.
-
I keep running into this same issue, I've tried using new ethers.JsonRpcProvider() still it turns up this error below const provider = new ethers.providers.JsonRpcProvider("https://bsc-dataseed.binance.org"); TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') Node.js v18.16.0 |
Beta Was this translation helpful? Give feedback.
-
Hi there can anybody help me to solve this issue i have been running into since i have run it many times it does not work i even try change the language to English it still doesn't work any help you can render for me for me let passPhrase = new Mnemonic(Mnemonic.Words.ENGLISH); TypeError: Cannot read properties of undefined (reading 'ENGLISH') Node.js v19.5.0 |
Beta Was this translation helpful? Give feedback.
-
This Helped! Thanks mates!! |
Beta Was this translation helpful? Give feedback.
@RichardKoh1 Make sure in your scripts
Process
should beprocess
with lower casep
.