TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider') #6533
-
I'm on ether.js s SimlpeStorage. I'm try to deploy my js file but getting below error |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello, @KAIIIJ. If you choose not to use the latest version, you can use ethers@^5.6.2. Nevertheless, take a peek at this github repository: 'https://github.com/PatrickAlphaC/ethers-simple-storage-fcc?tab=readme-ov-file', in case the error continues. Happy learning! |
Beta Was this translation helpful? Give feedback.
-
If you choose to use the latest version, replace - const provider = new ethers.providers.JsonRpcProvider(
+ const provider = new ethers.providers.JsonRpcProvider( |
Beta Was this translation helpful? Give feedback.
Hello, @KAIIIJ.
You're using the most recent version of ether.js, which has undergone significant modifications; please go to the documentation for additional details.
If you choose not to use the latest version, you can use ethers@^5.6.2.
Nevertheless, take a peek at this github repository: 'https://github.com/PatrickAlphaC/ethers-simple-storage-fcc?tab=readme-ov-file', in case the error continues.
Happy learning!