Replies: 4 comments 2 replies
-
try const { network, ethers } = require("hardhat") and delete const { ethers } = require("ethers") |
Beta Was this translation helpful? Give feedback.
-
@parishill25 I tried but it still shows the same error the terminal still show |
Beta Was this translation helpful? Give feedback.
-
Well @parishill25 this is how my hardhat-config.js looks like and I suppose I have the required files ! |
Beta Was this translation helpful? Give feedback.
-
@naman1402 ,Your problem has been solved? I have also encountered similar problems. If your ethers is ethers6, you use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hello everyone,
can someone please help me out in solving this error
`const { network } = require("hardhat")
const { developmentChains, networkConfig } = require("../helper-hardhat-config")
const { verify } = require("../utils/verify")
const { ethers } = require("ethers")
const VRF_SUB_FUND_AMOUNT = ethers.utils.parseEther("2")`
and when I run
yarn hardhat deploy
I get
Error: ERROR processing skip func of E:coding\lottery-hardhat\deploy\01-deploy-lottery.js: TypeError: Cannot read properties of undefined (reading 'parseEther')
Beta Was this translation helpful? Give feedback.
All reactions