You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the node examples with ts-node, all is good, but if I want to compile with tsc I'm getting the following error:
tsc faceDetection.ts
../../node_modules/@types/webgl2/index.d.ts:582:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'WebGL2RenderingContext' must be of type '{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 556 more ...; readonly WAIT_FAILED: number; }', but here has type '{ new (): WebGL2RenderingContext; prototype: WebGL2RenderingContext; readonly ACTIVE_ATTRIBUTES: number; readonly ACTIVE_TEXTURE: number; ... 557 more ...; readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: number; }'.
582 declare var WebGL2RenderingContext: {
~~~~~~~~~~~~~~~~~~~~~~
../../../../../../../../usr/local/lib/node_modules/typescript/lib/lib.dom.d.ts:16316:13
16316 declare var WebGL2RenderingContext: {
~~~~~~~~~~~~~~~~~~~~~~
'WebGL2RenderingContext' was also declared here.
Found 1 error.
So WebGL2RenderingContext is being declared in two separate parts...
Thanks
The text was updated successfully, but these errors were encountered:
When running the node examples with ts-node, all is good, but if I want to compile with tsc I'm getting the following error:
tsc faceDetection.ts
So WebGL2RenderingContext is being declared in two separate parts...
Thanks
The text was updated successfully, but these errors were encountered: