Give better error messages when properties are accessed on global empty DOM interfaces #33907
Milestone
Comments
|
@kyliau did you plan on picking this back up? |
|
@m-henderson No, I do not plan on picking this back up. You're welcome to take over, if that's why you're asking. |
|
I just spent 30+ minutes stuck on this error -- would love to see something like this get added so others don't go down that rabbit hole. In my case, the cryptic error was |
|
Thanks @JoshuaKGoldberg! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://twitter.com/rauschma/status/1181852019264503808
We should give a more helpful message when missing
"lib": ["dom"].If accessing a property on a type that was
/^HTML\w+Element$/it is likely a forward declaration for DOM environments, and we should provide an error message like:
Bonus: would be awesome if we could provide related spans in a
tsconfig.json/jsconfig.jsonto sayThe text was updated successfully, but these errors were encountered: