Ethers.js: Import declaration conflicts with local declaration of 'Arrayish'.

Created on 21 Nov 2019  路  3Comments  路  Source: ethers-io/ethers.js

node_modules/ethers/utils/bytes.d.ts:5:10 - error TS2440: Import declaration conflicts with local declaration of 'Arrayish'.

While compiling the typescript this error shows up.

Any solutions?

discussion

Most helpful comment

(it was actually a non-backwards compatible change added in TypeScript 3.7, which broke self-imports. I think. That said, the self-import was obviously a refactoring oversight, so I'm glad it caught it.)

All 3 comments

What version are you using? This should have been fixed in 0609ea9...

(it was actually a non-backwards compatible change added in TypeScript 3.7, which broke self-imports. I think. That said, the self-import was obviously a refactoring oversight, so I'm glad it caught it.)

Thank you. It was resolved by updating the package.

Was this page helpful?
0 / 5 - 0 ratings