-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSC error suppression for latest versions #272
Conversation
Thank you @vunderkind . Please do a |
Thanks for your response. Doing so now! |
Done — I added another |
@vunderkind linter and build tests are not happy with these changes.
and push? |
@volovyks — thanks for the nudge! Ach, turned out I was modifying the file in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thanks @vunderkind !
* TSC error suppression for latest versions * TSC error suppression & lint fix Co-authored-by: Bo Yao <[email protected]> Co-authored-by: Serhii Volovyk <[email protected]>
Problem summary
Newer versions of TypeScript seem to be throwing compile-time errors deep within the
lib.dom.ts
file, with the error looking something like this:"node_modules/typescript/lib/lib.dom.d.ts(14578,11): error TS2430: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGL2RenderingContextBase'.\n"
A quick and dirty fix is to skip library checks, according to this discussion. That's what is contained in this pull request.
Env parameters
My machine, which recorded this issue, is a Macbook Pro (2019), running Node
v16.9.0
, npm8.19.2
and TypeScriptv4.8.4
. This happened with the latest near app build vianpx create-near-app@latest
.