TypeScript 4.3.2 was released today. When I upgraded to it, tsc
failed to build types with babylonjs
or @babylonjs/core
as a dependency.
Cannot find name 'WebGLObject'.
I spent a few hours trying to work around this and was unable to.
Is anyone else experiencing this?
It seems that “WebGlObject” has been removed. It was an empty interface anyway.
Here you can see how they fixed the webgl2 types in the DefinitelyTyped repository:
committed 11:33PM - 12 Mar 21 UTC
* update webgl2 for TS 4.3 DOM
webgl2 needs to exactly match what's in the D… OM. WebGLObject is gone
from the DOM, so it needs to be removed here too.
* remove extraneous file
I will update the repo today and fix it
3 Likes
It works, finally i can enable the noImplicitOverride
compiler flag in my projects
1 Like