Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from buidler after migrating to hardhat #963

Closed
gigamesh opened this issue Oct 28, 2020 · 2 comments
Closed

Error from buidler after migrating to hardhat #963

gigamesh opened this issue Oct 28, 2020 · 2 comments

Comments

@gigamesh
Copy link

Thanks for the awesome tools!

I followed the migration guide, and even though I no longer have any mentions of buidler, I'm still getting this error:

hardhat --network localhost deploy --watch "--export" "../web/src/contracts.json"

An unexpected error occurred:

Error: Cannot find module '@nomiclabs/buidler/internal/core/providers/construction'
Require stack:
- /Users/matthewmasurka/code-projects/creaton/contracts/node_modules/solidity-coverage/plugins/resources/buidler.utils.js
- /Users/matthewmasurka/code-projects/creaton/contracts/node_modules/solidity-coverage/plugins/buidler.plugin.js
- /Users/matthewmasurka/code-projects/creaton/contracts/hardhat.config.js
- /Users/matthewmasurka/code-projects/creaton/contracts/node_modules/hardhat/internal/core/config/config-loading.js
- /Users/matthewmasurka/code-projects/creaton/contracts/node_modules/hardhat/internal/cli/cli.js

I've tried wiping package-lock.json & node_modules & reinstalling, but no luck. Any ideas?

@alcuadrado
Copy link
Member

Hey @gigamesh,

You are importing the solidity-coverage plugin, which is being migrated at the moment. It will be available for Hardhat toon.

@gigamesh
Copy link
Author

Thanks - sorry should have done more digging.

For anyone who runs into the same issue:
sc-forks/solidity-coverage#541

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants