question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typechain 8.1.x no longer generates types for ethers-v5-target

See original GitHub issue

We use hardhat/typechain to generate TypeScript types from Solidity source code and JSON ABIs.

require('@typechain/hardhat');
const path = require('path');
  typechain: {
    outDir: 'src/types',
    target: 'ethers-v5',
    externalArtifacts: [path.join(__dirname, 'src/contracts/**/*.json')],
  },
};
module.exports = config;

It stops working after upgrading to:

@typechain/ethers-v5 | ~10.0.0 -> ~10.1.0 |   |   |   |   – | – | – | – | – | – @typechain/hardhat | ~6.0.0 -> ~6.1.0 |   |   |   |   typechain | ~8.0.0 -> ~8.1.0

No errors are given, but src/types are not generated.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
raymondfengcommented, Jun 16, 2022

🥇

0reactions
alcuadradocommented, Jun 16, 2022

This was added so that our new plugin, a bundle of recommended plugins, could always install Typechain and not annoy js users. I moved that logic to the toolbox itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[ethers-v5] Contract types not exported in generated index.ts
The index.ts only reexports the factory types, it does not export the contract ... I'm using a private npm package where the TypeChain-generated...
Read more >
typechain | Yarn - Package Manager
Step by step guide. Install TypeChain with npm install --save-dev typechain and install desired target. Run typechain --target=your_target (you might need to ...
Read more >
@typechain/hardhat - npm
Automatically generate TypeScript bindings for smartcontracts while using Hardhat. Installation. If you use Ethers/Waffle do: npm install --save ...
Read more >
I can't get "Typechain" folder when I install dependencies ...
Run npx hardhat compile to generate the typechain folder when using hardhat with solidity. As seen in the "Tasks" section of ...
Read more >
Introducing TypeChain — Typescript bindings for Ethereum ...
But the situation becomes even more complicated when you work with dynamically generated types such as smart contract wrappers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found