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

How to import hardhat? #18

Open
DoDzilla-ai opened this issue Apr 4, 2022 · 1 comment
Open

How to import hardhat? #18

DoDzilla-ai opened this issue Apr 4, 2022 · 1 comment

Comments

@DoDzilla-ai
Copy link

I am trying to import the hardhat. I've installed with yarn add hardhat. When I import the hardhat with const _hardhat = require("hardhat"); I get the following error:

Failed to compile.

./node_modules/undici/lib/api/api-request.js
Module not found: Can't resolve 'async_hooks' in '/home/bugra/deneme/end-to-end/packages/react-app/node_modules/undici/lib/api'

How can I resolve this issue? How can I use hardhat within the packages/react-app/src/components/Minter.jsx

@tony123S
Copy link

same here ! Keep getting Module not found: Can't resolve 'hardhat' error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants