Skip to content

How to import hardhat? #18

@DoDzilla-ai

Description

@DoDzilla-ai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions