您好,我是使用ionic框架的新手,有时当我尝试像这样编译时会出错,而我一点也不了解,如果您能帮助我,我将不胜感激!
[13:33:41] ngc started ...
[13:33:46] typescript error
Type AnimatesDirective in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animates.directive.d.ts is part
of the declarations of 2 modules: AnimatorModule in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animator.module.d.ts and
AppModule in C:/Users/sportak/ionic/fitnessV2/fitness/src/app/app.module.ts! Please consider moving
AnimatesDirective in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animates.directive.d.ts to a
higher module that imports AnimatorModule in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animator.module.d.ts and
AppModule in C:/Users/sportak/ionic/fitnessV2/fitness/src/app/app.module.ts. You can also create a new
NgModule that exports and includes AnimatesDirective in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animates.directive.d.ts then
import that NgModule in AnimatorModule in
C:/Users/sportak/ionic/fitnessV2/fitness/node_modules/css-animator/angular/animator.module.d.ts and
AppModule in C:/Users/sportak/ionic/fitnessV2/fitness/src/app/app.module.ts.
Error: The Angular AoT build failed. See the issues above
at C:\Users\sportak\ionic\fitnessV2\fitness\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:237:55
at step (C:\Users\sportak\ionic\fitnessV2\fitness\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:32:23)
at Object.next (C:\Users\sportak\ionic\fitnessV2\fitness\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:13:53)
at fulfilled (C:\Users\sportak\ionic\fitnessV2\fitness\node_modules\@ionic\app-scripts\dist\aot\aot-compiler.js:4:58)
at <anonymous>
[13:33:46] copy finished in 4.61 s