question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any plans for @ethersproject/units to support TS 4.1.x

See original GitHub issue

We’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:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
feulfcommented, Mar 17, 2021

I updated these 2 parameters in my tsconfig.json and it works fine now:

    "strict": false,
    "noImplicitAny": false,

Thanks @ricmoo!

2reactions
ricmoocommented, Feb 10, 2021

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…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found