-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Dependency update: Bump web3 to version 1.2.2 #2488
Conversation
Hi @eggplantzzz anything I can do to help merging this? It is blocking a fix that we want to merge in https://github.com/decentralized-identity/element/ |
@eggplantzzz If you're seeing tsc errors triggered by web3, this config might be helpful as a stopgap (see thread in web3 3134)
The types are 'stapled on' there and it will likely take some time to get everything straightened out. |
Oh yikes, I don't think that |
@gnidan The setting suppresses compilation errors from node_modules deps. Is this a big problem? When I google it, the second entry I see (after the official TS page) is titled |
For further reference, a couple other Ethereum monorepo projects using this in their tsconfig |
@gjgd We just need to get this to pass the CI. Currently it looks like there are some typing issues, I'm currently unsure of how to proceed. I suppose I need to do some research. |
@cgewecke I'm not sure I understand exactly what the problem is, but won't that option turn off a huge piece of the functionality of TS? I mean, isn't type checking one of the big reasons to use TS? |
@eggplantzzz They're looking for a reproduction case as we speak in web3 3154 because the proximate cause isn't obvious. Are you just seeing this on the HDWallet? Have you run it locally? AFAIK the setting does not disable type-hints, but rather smooths out compilation setting discreps. There's a pretty good discussion here about how selective it is. |
@eggplantzzz Live update: web3 is diagnosing this as problem in the host config (e.g at Truffle) and related to your use of Does tsc work without those paths specified. Is there a design decision there you could clarify? Not a typescript expert and interested in learning more :) |
AFAIK the manual paths are there as a stopgap. Happy to remove if it makes this work! |
PR for adjusting web3 typings. |
Closing this in favor of #2558 |
No description provided.