1Hive / deployments-aragon-os

AragonOS deployments using Hardhat πŸ¦…

Home Page:https://github.com/aragon/aragonOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

typechain directory not found

spark8899 opened this issue Β· comments

Hello,
I executed the yarn command to install node_modules and found the following error.

yarn install v1.22.18
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/5] πŸ” Validating package.json...
[2/5] πŸ” Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] πŸ”— Linking dependencies...
warning " > hardhat-deploy@0.9.3" has unmet peer dependency "@ethersproject/hardware-wallets@^5.0.14".
warning "hardhat-gas-reporter > eth-gas-reporter@0.2.22" has unmet peer dependency "@codechecks/client@^0.1.0".
[5/5] πŸ”¨ Building fresh packages...
$ node ./.setup.js && hardhat typechain
An unexpected error occurred:

hardhat.config.ts:14:35 - error TS2307: Cannot find module './typechain' or its corresponding type declarations.

14 import {APMRegistry, Kernel} from './typechain';
~~~~~~~~~~~~~

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

I have solved this problem, thank you very much, just execute the following command first.
yarn add hardhat
yarn hardhat compile