TypeChain icon indicating copy to clipboard operation
TypeChain copied to clipboard

Bug: Overrides is not imported as a type-only import

Open sambacha opened this issue 3 years ago • 2 comments

'Overrides' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.

compile:~ $ Error: test__factory.ts:12:52 - error TS1444: 'Overrides' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled.

12 import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
                                                      ~~~~~~~~~

sambacha avatar Jul 30 '22 02:07 sambacha

Just ran into this issue as well, hope it is fixed soon!

phated avatar Aug 06 '22 00:08 phated

I believe #737 was created to fix this

phated avatar Aug 06 '22 00:08 phated