Is there any plans for @ethersproject/units to support TS 4.1.x
See original GitHub issueWe’re currently trying to use @ethersproject/units
(5.0.10) inside a react project which is built using a new version of TS:
"typescript": "^4.1.3",
currently, when trying to compile, we get the following type error from tsc:
node_modules/@ethersproject/experimental/lib/nonce-manager.d.ts:7:9 - error TS2611: 'provider' is defined as a property in class 'Signer', but is overridden here in 'NonceManager' as an accessor.
7 get provider(): ethers.providers.Provider;
~~~~~~~~
Found 1 error.
I’ve noticed that typescript 3.x is listed as a dev dependency for this repo:
"typescript": "3.8.3",
Just wondering if anyone else slammed into this? If not, are there any plans to support newer TS installations?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
How to make 4.X Typescript project compatible with older ...
This answer assumes the question is about taking source code (.ts) of a project written using TypeScript 4.x constructs and making type ...
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
I updated these 2 parameters in my tsconfig.json and it works fine now:
Thanks @ricmoo!
I’m working on v6 right now which uses the latest greatest TS.
I don’t mind bumping the version up for v5 too though. I just need to communicate it because TS does make changes like this that can break people…
I’m surprised I haven’t ran into the above problem myself…