今天早上我更新了我的Ionic项目,出现了这个错误:
错误:无法解析'JitCompilerFactory'(?)的所有参数 . 确保所有参数都使用Inject进行修饰或具有有效的类型注释,并且'JitCompilerFactory'使用Injectable进行修饰 . atAnnotationError(http:// localhost:8100 / build / vendor.js:1687:12)atdededenciesFor(http:// localhost:8100 / build / vendor.js:2471:15)at resolveReflectiveFactory(http:// localhost) :8100 / build / vendor.js:2350:24)at resolveReflectiveProvider(http:// localhost:8100 / build / vendor.js:2375:82)at Array.map()at resolveReflectiveProviders(http:// localhost:8100) /build/vendor.js:2384:48)在Function.ReflectiveInjector.resolve(http:// localhost:8100 / build / vendor.js:2612:16)处于Function.ReflectiveInjector.resolveAndCreate(http:// localhost:8100) /build/vendor.js:2644:79)在http:// localhost:8100 / build / vendor.js:4622:51 at http:// localhost:8100 / build / vendor.js:4619:17
dependencies
"dependencies": {
"@angular/common": "^5.2.10",
"@angular/compiler": "^5.2.10",
"@angular/compiler-cli": "^5.2.10",
"@angular/core": "^4.4.7",
"@angular/forms": "^5.2.10",
"@angular/http": "^5.2.10",
"@angular/platform-browser": "^5.2.10",
"@angular/platform-browser-dynamic": "^5.2.10",
"@ionic-native/core": "3.12.1",
"@ionic-native/geolocation": "^4.7.0",
"@ionic-native/http": "^4.7.0",
"@ionic-native/network": "^4.7.0",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic-native/toast": "^4.7.0",
"@ionic-native/vibration": "^4.7.0",
"@ionic/storage": "2.0.1",
"angular-cli": "^1.0.0-beta.28.3",
"cordova": "^8.0.0",
"cordova-android": "^6.4.0",
"cordova-plugin-advanced-http": "^1.11.1",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-device": "^1.1.7",
"cordova-plugin-file": "^4.3.3",
"cordova-plugin-geolocation": "^2.4.3",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^4.1.0",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-vibration": "^3.1.0",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-toast": "^2.6.2",
"ionic": "^3.20.0",
"ionic-angular": "3.6.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"typings": "^2.1.1",
"webpack": "^4.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "^3.1.9",
"@types/googlemaps": "^3.30.8",
"typescript": "2.3.4",
"ws": "4.1.0"
}
}