Skip to content

hardhat compile does not rebuild types #5855

Answered by klugjo
klugjo asked this question in Q&A
Discussion options

You must be logged in to vote

Ho well, I found my answer the moment I posted this:

https://github.com/dethcrypto/TypeChain/tree/master/packages/hardhat

I needed to add

import '@typechain/hardhat';
import '@nomicfoundation/hardhat-chai-matchers';

to my hardhat.config.ts file then run hardhat clean and finally hardhat compile did what I expected it to

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by klugjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant