Lesson 5: Ether.js SimpleStorage getting error #5943
Answered
by
Nlferu
Rakib-mbstu
asked this question in
Q&A
-
I am getting "const ethers = require(ethers); I have tried I have the Node.js v18.17.0 The complete error is
Below is the code on deploy.js
I have looked for solutions. Couldn't find any.Help will be much appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
Nlferu
Jul 30, 2023
Replies: 1 comment 1 reply
-
Hello @Rakib-mbstu you have incorrectly formatted import. Just import it as below: const ethers = require("ethers") You are missing "" in require brackets |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Rakib-mbstu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @Rakib-mbstu
you have incorrectly formatted import. Just import it as below:
You are missing "" in require brackets