I assume something is not set up right as this is a new project. I am getting 50 errors about
XXX is defined as a property in class ‘YYY’, but is overridden here in ‘ZZZ’ as an accessor.
What causes these? And how do I get them to stop erroring so I can compile?
It basically does it for any class I call from within my code. But the errors are kicking out of the @babylon package itself, not my code.
> Executing task: tsc -p d:\xampp\htdocs\pwt\web\tsconfig.json <
node_modules/@babylonjs/core/Cameras/arcRotateCamera.d.ts:54:9 - error TS2611: 'upVector' is defined as a property in class 'TargetCamera', but is overridden here in 'ArcRotateCamera'
as an accessor.
54 set upVector(vec: Vector3);
~~~~~~~~
node_modules/@babylonjs/core/Engines/engine.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: XRSessionMode, XRReferenceSpaceType,
XREnvironmentBlendMode, XRVisibilityState, XRHandedness, XRTargetRayMode, XREye, XRPlaneSet, XRAnchorSet, XRRigidTransform, XRRay
1 import { Observable } from "../Misc/observable";
~~~~~~
node_modules/babylonjs/babylon.module.d.ts:1:1
1 declare module "babylonjs/types" {
~~~~~~~
Conflicts are in this file.
node_modules/@babylonjs/core/Gizmos/positionGizmo.d.ts:65:9 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
65 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Gizmos/positionGizmo.d.ts:75:9 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
75 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/@babylonjs/core/Gizmos/rotationGizmo.d.ts:38:9 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
38 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Gizmos/rotationGizmo.d.ts:48:9 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
48 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/@babylonjs/core/Gizmos/scaleGizmo.d.ts:45:9 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
45 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Gizmos/scaleGizmo.d.ts:55:9 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
55 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/@babylonjs/core/Materials/Textures/equiRectangularCubeTexture.d.ts:25:5 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'EquiRectangularCubeTexture' as an instance property.
25 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Materials/Textures/hdrCubeTexture.d.ts:28:5 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'HDRCubeTexture' as an instance property.
28 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Materials/Textures/multiRenderTarget.d.ts:73:9 - error TS2611: 'wrapU' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
73 set wrapU(wrap: number);
~~~~~
node_modules/@babylonjs/core/Materials/Textures/multiRenderTarget.d.ts:78:9 - error TS2611: 'wrapV' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
78 set wrapV(wrap: number);
~~~~~
node_modules/@babylonjs/core/Materials/Textures/Procedurals/proceduralTexture.d.ts:17:5 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'ProceduralTexture' as an instance property.
17 isCube: boolean;
~~~~~~
node_modules/@babylonjs/core/Materials/Textures/renderTargetTexture.d.ts:24:5 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'RenderTargetTexture' as an instance property.
24 isCube: boolean;
~~~~~~
node_modules/@babylonjs/core/Materials/Textures/renderTargetTexture.d.ts:71:5 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'Texture', but is overridden here in
'RenderTargetTexture' as an instance property.
71 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/Meshes/instancedMesh.d.ts:48:9 - error TS2611: 'renderingGroupId' is defined as a property in class 'AbstractMesh', but is overridden here in 'InstancedMesh' as an accessor.
48 get renderingGroupId(): number;
~~~~~~~~~~~~~~~~
node_modules/@babylonjs/core/scene.d.ts:156:9 - error TS2611: 'environmentTexture' is defined as a property in class 'AbstractScene', but is overridden here in 'Scene' as an accessor.
156 get environmentTexture(): Nullable<BaseTexture>;
~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:1:1 - error TS6200: Definitions of the following identifiers conflict with those in another file: XRSessionMode, XRReferenceSpaceType, XREnvironmentBlendMode, XRVisibilityState, XRHandedness, XRTargetRayMode, XREye, XRPlaneSet, XRAnchorSet, XRRigidTransform, XRRay
1 declare module "babylonjs/types" {
~~~~~~~
node_modules/@babylonjs/core/Engines/engine.d.ts:1:1
1 import { Observable } from "../Misc/observable";
~~~~~~
Conflicts are in this file.
node_modules/babylonjs/babylon.module.d.ts:10953:9 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'ProceduralTexture' as an instance property.
10953 isCube: boolean;
~~~~~~
node_modules/babylonjs/babylon.module.d.ts:15453:13 - error TS2611: 'renderingGroupId' is defined as a property in class 'AbstractMesh', but is overridden here in 'InstancedMesh' as an accessor.
15453 get renderingGroupId(): number;
~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:21046:9 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'RenderTargetTexture' as an instance property.
21046 isCube: boolean;
~~~~~~
node_modules/babylonjs/babylon.module.d.ts:21093:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'Texture', but is overridden here in 'RenderTargetTexture' as an instance property.
21093 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:36219:13 - error TS2611: 'environmentTexture' is defined as a property in class 'AbstractScene', but is overridden here in 'Scene' as an accessor.
36219 get environmentTexture(): Nullable<BaseTexture>;
~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:39756:13 - error TS2611: 'upVector' is defined as a property in class 'TargetCamera', but is overridden here in 'ArcRotateCamera' as an accessor.
39756 set upVector(vec: Vector3);
~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:47613:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
47613 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:47623:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
47623 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:48902:13 - error TS2611: 'wrapU' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
48902 set wrapU(wrap: number);
~~~~~
node_modules/babylonjs/babylon.module.d.ts:48907:13 - error TS2611: 'wrapV' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
48907 set wrapV(wrap: number);
~~~~~
node_modules/babylonjs/babylon.module.d.ts:50300:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
50300 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:50310:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
50310 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:50616:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
50616 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:50626:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
50626 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:57074:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'HDRCubeTexture' as an
instance property.
57074 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:58384:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'EquiRectangularCubeTexture' as an instance property.
58384 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:84011:9 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'ProceduralTexture' as an instance property.
84011 isCube: boolean;
~~~~~~
node_modules/babylonjs/babylon.module.d.ts:88355:13 - error TS2611: 'renderingGroupId' is defined as a property in class 'AbstractMesh', but is overridden here in 'InstancedMesh' as an accessor.
88355 get renderingGroupId(): number;
~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:93695:9 - error TS2610: 'isCube' is defined as an accessor in class 'Texture', but is overridden here in 'RenderTargetTexture' as an instance property.
93695 isCube: boolean;
~~~~~~
node_modules/babylonjs/babylon.module.d.ts:93742:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'Texture', but is overridden here in 'RenderTargetTexture' as an instance property.
93742 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:108413:13 - error TS2611: 'environmentTexture' is defined as a property in class 'AbstractScene', but is overridden here in 'Scene' as an accessor.
108413 get environmentTexture(): Nullable<BaseTexture>;
~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:111828:13 - error TS2611: 'upVector' is defined as a property in class 'TargetCamera', but is overridden here in 'ArcRotateCamera' as an accessor.
111828 set upVector(vec: Vector3);
~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:119183:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
119183 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:119193:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'PositionGizmo' as an accessor.
119193 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:120389:13 - error TS2611: 'wrapU' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
120389 set wrapU(wrap: number);
~~~~~
node_modules/babylonjs/babylon.module.d.ts:120394:13 - error TS2611: 'wrapV' is defined as a property in class 'RenderTargetTexture', but is overridden here in 'MultiRenderTarget' as an accessor.
120394 set wrapV(wrap: number);
~~~~~
node_modules/babylonjs/babylon.module.d.ts:121634:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
121634 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:121644:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'ScaleGizmo' as an accessor.
121644 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:121914:13 - error TS2611: 'updateGizmoRotationToMatchAttachedMesh' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
121914 set updateGizmoRotationToMatchAttachedMesh(value: boolean);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:121924:13 - error TS2611: 'scaleRatio' is defined as a property in class 'Gizmo', but is overridden here in 'RotationGizmo' as an accessor.
121924 set scaleRatio(value: number);
~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:127914:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'HDRCubeTexture' as an instance property.
127914 coordinatesMode: number;
~~~~~~~~~~~~~~~
node_modules/babylonjs/babylon.module.d.ts:129142:9 - error TS2610: 'coordinatesMode' is defined as an accessor in class 'BaseTexture', but is overridden here in 'EquiRectangularCubeTexture' as an instance property.
129142 coordinatesMode: number;
~~~~~~~~~~~~~~~
Found 50 errors.
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -Command tsc -p d:\xampp\htdocs\pwt\web\tsconfig.json" terminated with exit code: 1.