我正在尝试更新我的项目以使用typescript 4.9.3,最新的Angular(@15)应该支持它(https://angular.io/guide/update-to-version-15)
但无论我做什么我总是得到错误
错误:无法初始化Angular 编译-Angular 编译器需要TypeScript〉=4.8.2且〈4.9.0,但找到的却是4.9.3。
我不明白:为什么Angular 编译器要求打字脚本版本低于4. 9. 0???
谢谢你的帮助!我把我的包裹寄到这里了。json,有人能帮忙吗?
{
"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"
}
}
1条答案
按热度按时间mtb9vblg1#
不支持,Angular 15.0不支持TS 4.9。
The PR is pending。您可能需要等待15.1。