TypeError: Cannot read property 'prototype' of undefined #3551
Replies: 1 comment
-
Can you please open an issue with the steps to reproduce it instead of a discussions? Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
When i am running this command
npx hardhat run scripts/deploy.js
am getting this errorTypeError: Cannot read property 'prototype' of undefined
. If someone knows please help ! 🙏deploy.js
const hre = require("hardhat");
async function main() {
const VikashPR = await hre.ethers.getContractFactory("VikashPR");
const vikashpr = await VikashPR.deploy();
await vikashpr.deployed();
}
// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main()
.then(()=>process.exit(0))
.catch((error)=>{
console.error(error);
process.exit(1);
});
Error :
Beta Was this translation helpful? Give feedback.
All reactions