enter image description here

I am getting this error when I deploy my contract in ganache using the command node deploy.js

1 Answer 1


The provider declaration should have been:

const provider = new ethers.providers....

new keyword was missing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.