I'm currently working on updating my project to utilize TypeScript 4.9.3, and the newest version of Angular (@15) is said to be compatible with it (https://angular.io/guide/update-to-version-15)
However, no matter what steps I take, I keep encountering this error:
Error: Failed to initiate Angular compilation - The Angular Compiler requires TypeScript >=4.8.2 and <4.9.0, yet it found version 4.9.3 instead.
I'm confused as to why the Angular Compiler is expecting a TypeScript version less than 4.9.0???
Any assistance would be greatly appreciated! I've included my package.json below for reference:
{
"name": "myproject",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"
},
"private": true,
"dependencies": {
"@angular/animations": "^15.0.2",
"@angular/cdk": "^15.0.1",
"@angular/common": "^15.0.2",
"@angular/compiler": "^15.0.2",
"@angular/core": "^15.0.2",
"@angular/forms": "^15.0.2",
"@angular/material": "^15.0.1",
"@angular/platform-browser": "^15.0.2",
"@angular/platform-browser-dynamic": "^15.0.2",
"@angular/router": "^15.0.2",
"angular-highcharts": "^14.1.5",
"bootstrap": "^5.2.0",
"bootstrap-icons": "^1.9.1",
"highcharts": "^10.2.0",
"highcharts-angular": "^3.0.0",
"rxjs": "~7.4.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "^15.0.2",
"@angular/cli": "^15.0.2",
"@angular/compiler-cli": "^15.0.2",
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"jasmine-core": "~3.10.0",
"karma": "~6.3.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "~1.7.0",
"typescript": "^4.9.3"
}
}