Unable to compile deploy.js #5900
theonlyunr
started this conversation in
General
Replies: 1 comment 3 replies
-
replace this line of code: const provider = new ethers.provider.JsonRpcProvider("http://127.0.0.1:7545"); with the following: const provider = new ethers.JsonRpcProvider("http://127.0.0.1:7545"); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
theonlyunr@Laptop:~/hh-fcc/ethers-simple-storage-fcc$ node deploy.js
TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')
at main (/home/theonlyunr/hh-fcc/ethers-simple-storage-fcc/deploy.js:8:40)
at Object. (/home/theonlyunr/hh-fcc/ethers-simple-storage-fcc/deploy.js:24:1)
at Module._compile (node:internal/modules/cjs/loader:1103:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
CODE
Beta Was this translation helpful? Give feedback.
All reactions