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

Build fails with TS2339 but property exists on interface #1172

Open
iankressin opened this issue Mar 15, 2023 · 2 comments
Open

Build fails with TS2339 but property exists on interface #1172

iankressin opened this issue Mar 15, 2023 · 2 comments

Comments

@iankressin
Copy link

Current Behavior

Build fails with semantic error TS2339: Property 'name' does not exist on type 'Erc20', but it does exist.

It's only failing with name property because it's the first prop of Erc20 prop that's called, if I try any other prop, fails as well

The interface Erc20 lives inside the src folder, under types/contracts/

2023-03-15-100739_2528x1031_scrot
Erc20 has name prop

2023-03-15-100701_1641x420_scrot
Build failing

Expected behavior

Build the project without errors

Additional context

Erc20 interface is generated by typechain

Your environment

  System:
    OS: Linux 5.15 Ubuntu 20.04.3 LTS (Focal Fossa)
    CPU: (12) x64 AMD Ryzen 5 3600X 6-Core Processor
    Memory: 10.51 GB / 15.57 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 18.12.1 - ~/.nvm/versions/node/v18.12.1/bin/node
    Yarn: 1.22.5 - /usr/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v18.12.1/bin/npm
  Browsers:
    Brave Browser: 106.1.44.112
    Chrome: 97.0.4692.99
    Firefox: 110.0.1
  npmPackages:
    tsdx: ^0.14.1 => 0.14.1
    typescript: ^4.3.0 => 4.9.5
@sayertindall
Copy link

Did u ever figure this out? All of my typechain interfaces are erroring with tsdx

@Alivers
Copy link

Alivers commented Aug 23, 2023

Same issue

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

No branches or pull requests

3 participants