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
I am trying to import the hardhat. I've installed with
yarn add hardhat. When I import the hardhat withconst _hardhat = require("hardhat");I get the following error:How can I resolve this issue? How can I use hardhat within the
packages/react-app/src/components/Minter.jsx