-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Compile error with TypeScript 3.6 #2007
Comments
Thanks for the info. FYI we usually suggest people add skipLibCheck to their tsconfig. https://www.tensorflow.org/js/tutorials/setup#typescript |
I run into the same issue with If I set "skipLibCheck": true tfjs will not be found. |
npm i --save @types/webgl2 |
@kevinmalo 's solution worked for me as well |
Why is this issue closed? The issue still exists, for the reason that @matt-tingen diagnosed over a year ago. The trivial PR that fixes it #2988 has also been open for many months ... |
To clarify - @kevinmalo's solution is a workaround. At the time of writing, it installs |
cc @annxingyuan |
TensorFlow.js version
1.2.8
Browser version
node
12.6.0
Describe the problem or feature request
Packages using
@tensorflow/tfjs-core
fail to compile with TypeScript 3.6 because of a conflict between@types/[email protected]
and the built-in webgl2 types added in TS 3.6.This conflict was resolved in DefinitelyTyped/DefinitelyTyped#36837 which created
@types/[email protected]
.The only change is the removal of
STENCIL_INDEX
which does not appear to be used in this repo.Updating to
@types/[email protected]
should allow projects with TS 3.6 to use@tensorflow/tfjs-core
again.Code to reproduce the bug / link to feature request
package.json
tsconfig.json
Create an empty
src/index.ts
and runyarn && yarn compile
.The fix can be confirmed with a resolution in the
package.json
:The text was updated successfully, but these errors were encountered: