简体   繁体   中英

Smart contract deploy with hardhat and heroku - ERR hardhat not installed

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM