Home > Software engineering >  Smart contract deploy with hardhat and heroku - ERR hardhat not installed
Smart contract deploy with hardhat and heroku - ERR hardhat not installed

Time:07-26

I have a nodejs server running on heroku and I want my users to be able to deploy smart-contracts from the frontend of the app, which makes api calls to the server.

The problem:

I initialized the project with npx hardhat init, added my server things and tested everything locally. It works flawlessly, but on heroku I keep getting: hardhat not installed, even though it is added to package.json.

I tried many things for many hours. Any help is appreciated!

CodePudding user response:

Found the problem: hardhat was in devDep. and should have been in dependencies.

  • Related