dethcrypto / dethcrypto/truffle-typings
@types/web3 is incompatible with web3's built-in types
- Dominant language
- No language data
- Stars
- 11
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Hey @krzkaczor
I'm having a compilation problem with this package. Here's tsc output:
```
node_modules/truffle-typings/index.d.ts:8:21 - error TS1340: Module 'web3' does not refer to a type, but is used as a type here. Did you mean 'typeof import('web3')'?
8 declare type Web3 = import("web3");
~~~~~~~~~~~~~~
Found 1 error.
```
I believe the problem is that this package is based in `@types/web3`, and not `web3`'s built-int `.d.ts` files. These typings are incompatible, and the built-in ones "win" over the other, leading to this error.
Do you know how can I fix it? Do you have plans to update this package?
Thanks!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported tsc error and inspect node_modules/truffle-typings/index.d.ts, especially its web3 type declaration. Compare the package's dependency on @types/web3 with web3's built-in .d.ts files; done means the incompatible declarations no longer produce TS1340 during compilation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100