If you know how to fix the issue, make a pull request instead.
@types/expo package and had problems.Definitions by: in index.d.ts) so they can respond.If you do not mention the authors the issue will be ignored.
I tried running tsc and this issue popped up:
node_modules/@types/expo/index.d.ts:1446:52 - error TS2304: Cannot find name 'WebGLRenderingContext'.
1446 export interface ExpoWebGLRenderingContext extends WebGLRenderingContext {
Temporarily commenting out the interface leads to other issues so I guess it's needed a lot.
Could it be a missing package or something else?
WebGLRenderingContext is defined in TypeScript's dom lib.
Try do add "dom" to your compilerOptions.lib array.
@fhelwanger It should be there already
@moshfeu yes, but I think it's something on @ddwwcruz 's project tsconfig.json. 馃槃
@ddwwcruz To clarify, what I meant earlier was for you to check your tsconfig.json to see if "dom" is added to the lib array.
If after this the error persists, you could try to setup a small repository to demonstrate the error so we can look at it further.
@fhelwanger you're correct about adding "dom"
Most helpful comment
WebGLRenderingContextis defined in TypeScript's dom lib.Try do add
"dom"to yourcompilerOptions.libarray.