const { ethers } = require("hardhat"); Error
After running the command npx hardhat run --network goerli scripts/deploy.js I have this strange error and I am not able to move forward.
Can you help me, please?
root@nft:~/projects/RTW3-Week7-NFT-Marketplace# npx hardhat run --network goerli scripts/deploy.js
/root/projects/RTW3-Week7-NFT-Marketplace/scripts/deploy.js:28
const { ethers } = require("hardhat");
^
SyntaxError: Identifier 'ethers' has already been declared
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1049:15)
at Module._compile (node:internal/modules/cjs/loader:1084:27)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47
Posted by Tomy Manero over 1 year ago
Road to Web3
I have been working on the courses for Road to Web3, and lately, I have noticed a lot of talk on Twitter about Alchemy University. Will I be able to attend Alchemy University as well?
Posted by princess peach almost 2 years ago