Typescript: tsc 3.6.3: WebGL incorrectly extends interface

Created on 30 Sep 2019  路  3Comments  路  Source: microsoft/TypeScript

Situation

  • updated tsc to 3.6.3, WebGL 0.0.7, @types/webgl2 0.0.5
  • new error: Interface 'WebGL2RenderingContext' incorrectly extends interface 'WebGL2RenderingContextBase'.

Expected behaviour

  • no error
  • no workaround necessary

Workaround:

  • "skipLibCheck": true in tsconfig
External

Most helpful comment

Removing the @types/webgl2 package from package.json fixed this error for me.

All 3 comments

Having the same issue in TypeScript 3.6.4.

Someone will need to send a PR to DefinitelyTyped

Removing the @types/webgl2 package from package.json fixed this error for me.

Was this page helpful?
0 / 5 - 0 ratings