-
카테고리
-
세부 분야
프로그래밍 언어
-
해결 여부
미해결
혹시 이런오류는 왜 날까요?
21.01.01 22:15 작성 조회수 672
0
../../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: {
~~~~~~~~~~~~~~~~~~~~~~
../../AppData/Roaming/npm/node_modules/typescript/lib/lib.dom.d.ts:16394:13
16394 declare var WebGL2RenderingContext: {
~~~~~~~~~~~~~~~~~~~~~~
'WebGL2RenderingContext' was also declared here.
이러한 오류가 나네요.. 구글링해도 명확한 답이 안나와요ㅠ
답변을 작성해보세요.
0
0
조현영
지식공유자2021.01.02
nest쪽은 저도 잘 모르겠습니다. 사실 @types/webgl2 에러 자체를 처음 봅니다. 제 소스 코드 상에서는 발생하지 않는 에러라서요.
0
ballde
질문자2021.01.02
nest 해보려고 typescript 보는중인데 위와 같은 애러때문에 nest 가 실행이 안되네요. nest에다가 npm install @types/webgl2를 해도 안되서요
0
0
0
0
0
0
답변 9