Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ethers-v4] New factories folder causing module resolution problem. #304

Closed
alexroan opened this issue Nov 18, 2020 · 2 comments · Fixed by #305
Closed

[ethers-v4] New factories folder causing module resolution problem. #304

alexroan opened this issue Nov 18, 2020 · 2 comments · Fixed by #305

Comments

@alexroan
Copy link
Contributor

Since this fix, I'm getting the following issue inside a generated factory:

src/generated/factories/LinkToken__factory.ts(9,38): error TS2307: Cannot find module '.'

It appears this line is trying to import TransactionOverrides from the factories folder:

import { TransactionOverrides } from ".";

This works if the "." becomes ".."

@quezak quezak changed the title New factories folder causing module resolution problem. [ethers-v4] New factories folder causing module resolution problem. Nov 18, 2020
@quezak
Copy link
Contributor

quezak commented Nov 18, 2020

Looks like you're right -- we must've missed it since most of us use ethers v5 by now :)
Seems like an easy fix, could you prepare a PR?

@krzkaczor
Copy link
Member

Released as @typechain/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants