Since I updated all packages today and updated my main project to the current Angular version, my application can no longer be started. The following errors occur when starting. However, it doesn’t seem to be just the more recent Babylon version, because I downgraded it again as a test.
Can someone help me?
Error: node_modules/@babylonjs/core/Engines/engine.d.ts:2685:21 - error TS2552: Cannot find name 'XREyeTrackingEvent'. Did you mean 'XREyeTrackingSourceEvent'?
2685 eyetrackingend: XREyeTrackingEvent;
~~~~~~~~~~~~~~~~~~
Error: node_modules/@babylonjs/core/Engines/engine.d.ts:2840:5 - error TS2300: Duplicate identifier 'createAnchor'.
2840 createAnchor?: (pose: XRRigidTransform, space: XRSpace) => Promise<XRAnchor> | undefined;
~~~~~~~~~~~~
Error: node_modules/@babylonjs/core/Engines/engine.d.ts:2980:11 - error TS2320: Interface 'XRHand' cannot simultaneously extend types 'Map<any, any>' and 'Map<number, XRJointSpace>'.
Named property '[Symbol.iterator]' of types 'Map<any, any>' and 'Map<number, XRJointSpace>' are not identical.
2980 interface XRHand extends Map<number, XRJointSpace> {
~~~~~~
... AND MUCH MUCH MORE
My dependencies:
"dependencies": {
"@angular/animations": "^14.2.8",
"@angular/cdk": "^14.2.5",
"@angular/common": "^14.2.8",
"@angular/compiler": "^14.2.8",
"@angular/core": "^14.2.8",
"@angular/flex-layout": "^14.0.0-beta.41",
"@angular/forms": "^14.2.8",
"@angular/material": "^14.2.5",
"@angular/platform-browser": "^14.2.8",
"@angular/platform-browser-dynamic": "^14.2.8",
"@angular/router": "^14.2.8",
"rxjs": "~7.5.7",
"tslib": "^2.4.0",
"zone.js": "~0.11.8"
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.2.7",
"@angular/cli": "^14.2.7",
"@angular/compiler-cli": "^14.2.8",
"@babylonjs/core": "^5.29.0",
"@babylonjs/loaders": "^5.29.0",
"@types/jasmine": "~4.3.0",
"@types/node": "^18.11.6",
"jasmine-core": "~4.4.0",
"karma": "~6.4.1",
"karma-chrome-launcher": "~3.1.1",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.0.0",
"ts-loader": "^9.4.1",
"typescript": "4.8.4"
}
My node version
$ node -v
v18.12.0