Open iankressin opened 1 year ago
Build fails with semantic error TS2339: Property 'name' does not exist on type 'Erc20', but it does exist.
semantic error TS2339: Property 'name' does not exist on type 'Erc20'
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
name
Erc20
The interface Erc20 lives inside the src folder, under types/contracts/
src
types/contracts/
Erc20 has name prop
Build failing
Build the project without errors
Erc20 interface is generated by typechain
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
Did u ever figure this out? All of my typechain interfaces are erroring with tsdx
Same issue
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 ofErc20
prop that's called, if I try any other prop, fails as wellThe interface
Erc20
lives inside thesrc
folder, undertypes/contracts/
Erc20 has name prop
Build failing
Expected behavior
Build the project without errors
Additional context
Erc20
interface is generated by typechainYour environment