incompatible with latest Typescript compiler
See original GitHub issueHaving recently upgraded my project to Typescript 3.7.0-beta the project refuses to build throwing the following error:
node_modules/ethers/utils/bytes.d.ts:5:10 - error TS2440: Import declaration conflicts with local declaration of 'Arrayish'.
The error is thrown on the following line of code in utils/bytes.d.ts
:
import { Arrayish } from './bytes';
export declare type Arrayish = string | ArrayLike<number>;
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
typescript - Incompatible Identical Types - Stack Overflow
It's just that the module exists in two places. It exists at the top-level of node_modules , and also exists as a dependency...
Read more >Documentation - TypeScript 3.9
TypeScript 3.9 ships with many new speed improvements. Our team has been focusing on performance after observing extremely poor editing/compilation speed ...
Read more >TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >ts-loader - npm
Latest version: 9.4.2, last published: 25 days ago. ... The build should fail on TypeScript compilation errors as of webpack 2.
Read more >TypeScript - Cypress Documentation
The "types" will tell the TypeScript compiler to only include type ... Since Chai and jQuery are namespaces (globals), incompatible versions will cause...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been published to NPM and a release has been cut.
Please try out
4.0.38
and let me know if you still have any problems. 😃No, I think that it may be a change in how the compiler handles things.
I tried pulling the current
ethers.js
repo down and upgrading the TS version to 3.7.0-beta and receive the same error.The
import {}
references itself, and then the type is re-declared in the export. Removing the import statement fromutils/bytes.ts
resolves the issue.Tests are all passing.
@ricmoo can I author a merge request?