jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.2k stars 505 forks source link

Build fails with TS2339 but property exists on interface #1172

Open iankressin opened 1 year ago

iankressin commented 1 year ago

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 commented 1 year ago

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

Alivers commented 10 months ago

Same issue