Skip to content

Resolve errors from hardhat-ethers #141

Description

@rootulp

I apologize if this is unique to my developer environment but... I could previously run yarn install in this package but now I'm encountering:

$ for f in typechain/*.d.ts; do mv -- "$f" "${f%.d.ts}.ts"; done
$ tsc -p tsconfig.dist.json
typechain/commons.ts:20:5 - error TS1256: A rest element must be last in a tuple type.

20     ...EventArgsArray,
       ~~~~~~~~~~~~~~~~~

typechain/hardhat.ts:7:3 - error TS2305: Module '"../node_modules/@nomiclabs/hardhat-ethers/dist/src"' has no exported member 'FactoryOptions'.

7   FactoryOptions,
    ~~~~~~~~~~~~~~

typechain/hardhat.ts:8:3 - error TS2305: Module '"../node_modules/@nomiclabs/hardhat-ethers/dist/src"' has no exported member 'HardhatEthersHelpers'.

8   HardhatEthersHelpers as HardhatEthersHelpersBase,
    ~~~~~~~~~~~~~~~~~~~~


Found 3 errors.

I've rm -rf node_modules and retried with no luck. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions