-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Broken TypeScript typings on fresh install #2855
Comments
Cool, looks like it was just |
@CruzMolina I am not sure the PR solves the problem, as the latest '@types/web3' does not include any types and instead says, quote, "web3 provides its own type definitions, so you don't need @types/web3 installed!" |
Did you find a solution? I'm having the same issue #3777 |
Issue
After a fresh install of
@truffle/hdwallet-provider
(other packages possibly affected as well) TypeScript typings are not working correctly and compilation fails.Mentioned in trufflesuite/ganache#465 but it's a different repo and didn't gain much traction
Steps to Reproduce
npm install @truffle/hdwallet-provider web3
src/index.ts
:npx typescript --esModuleInterop src/index.ts
Expected Behavior
Compilation succeeds without any issues.
Actual Results
Typecheck fails with the following errors:
Environment
node --version
): Tested onv10.18.0
andv13.9.0
npm --version
):6.13.4
,6.13.7
The text was updated successfully, but these errors were encountered: