我为我的应用程序添加了这个日历(https://market.ionic.io/themes/ionic-calendar-week)但是我有一些错误
如何解决,
这是我的
我尝试安装但不工作npm install @angular/animations@latest --save
package.jason
{
"name": "MyApp",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.4.3",
"@angular/compiler": "4.4.3",
"@angular/compiler-cli": "4.4.3",
"@angular/core": "4.4.3",
"@angular/forms": "4.4.3",
"@angular/http": "4.4.3",
"@angular/platform-browser": "4.4.3",
"@angular/platform-browser-dynamic": "4.4.3",
"@ionic-native/core": "4.3.2",
"@ionic-native/splash-screen": "4.3.2",
"@ionic-native/status-bar": "4.3.2",
"@ionic/storage": "2.0.1",
"angular-percent-circle-directive": "^1.1.1",
"angular-svg-round-progressbar": "^1.1.1",
"cordova-android": "6.3.0",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-ionic-webview": "^1.1.16",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-whitelist": "^1.3.1",
"ion2-calendar": "^2.1.1",
"ionic-angular": "3.7.1",
"ionic-plugin-keyboard": "^2.2.1",
"ionic3-calendar": "^1.1.6",
"ionicons": "3.0.0",
"moment": "^2.19.1",
"rxjs": "5.4.3",
"sw-toolbox": "3.6.0",
"uuid": "^3.1.0",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.0.1",
"typescript": "2.3.4"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"ionic-plugin-keyboard": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {}
},
"platforms": [
"android"
]
}
}
错误
运行时错误无法找到模块“@ angular / animations”堆栈错误: 找不到模块“@ angular / animations” 在对象。 (http://localhost:8100/build/vendor.js:132377:7) 在 webpack_require (http://localhost:8100/build/vendor.js:55:30) 在Object.356(http://localhost:8100/build/main.js:1179:95) 在 webpack_require (http://localhost:8100/build/vendor.js:55:30) 在Object.337(http://localhost:8100/build/main.js:1159:70) 在 webpack_require (http://localhost:8100/build/vendor.js:55:30) 在webpackJsonpCallback(http://localhost:8100/build/vendor.js:26:23) 在http://localhost:8100/build/main.js:1:1
答案 0 :(得分:1)
现在它的工作我重新安装npm install ionic
并重新安装npm install @angular/animations@latest --save