Hi, I'm getting some errors when I try to compile typescript to javascript.
I'm using gl-matrix: 3.2.1 and @types/gl-matrix: 2.4.5.
When I run my compiler I get the following errors:
ERROR in [at-loader] ./node_modules/gl-matrix/index.d.ts:1:1
TS6200: Definitions of the following identifiers conflict with those in another file: RANDOM, setMatrixArrayType, toRadian, equals, vec2, vec3, vec4, mat2, mat2d, mat3, mat4, quat
ERROR in [at-loader] ./node_modules/gl-matrix/index.d.ts:70:18
TS2687: All declarations of 'EPSILON' must have identical modifiers.
ERROR in [at-loader] ./node_modules/gl-matrix/index.d.ts:71:16
TS2687: All declarations of 'ARRAY_TYPE' must have identical modifiers.
ERROR in [at-loader] ./src/webgl/lib/renderer/camera/Projection.ts:171:19
TS2339: Property 'set' does not exist on type 'mat4'.
Property 'set' does not exist on type '[number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]'.
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:9:1
TS6200: Definitions of the following identifiers conflict with those in another file: RANDOM, setMatrixArrayType, toRadian, equals, vec2, vec3, vec4, mat2, mat2d, mat3, mat4, quat
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:13:23
TS2323: Cannot redeclare exported variable 'EPSILON'.`
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:13:23
TS2687: All declarations of 'EPSILON' must have identical modifiers.
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:13:23
TS2717: Subsequent property declarations must have the same type. Property 'EPSILON' must be of type '0.000001', but here has type 'number'.
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:14:23
TS2323: Cannot redeclare exported variable 'ARRAY_TYPE'.
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:14:23
TS2687: All declarations of 'ARRAY_TYPE' must have identical modifiers.
ERROR in [at-loader] ./node_modules/@types/gl-matrix/index.d.ts:14:23
TS2717: Subsequent property declarations must have the same type. Property 'ARRAY_TYPE' must be of type 'ArrayConstructor | Float32ArrayConstructor', but here has type 'any'.
For now the issue can be resolved by using gl-matrix version 3.1.0 instead of the latest version.
Hi, I'm getting some errors when I try to compile typescript to javascript. I'm using
gl-matrix: 3.2.1
and@types/gl-matrix: 2.4.5
.When I run my compiler I get the following errors:
For now the issue can be resolved by using gl-matrix version 3.1.0 instead of the latest version.