模块“"node_modules/@angular/animations/animations"”没有导出成员 'AnimationBuilder'

Module '"node_modules/@angular/animations/animations"' has no exported member 'AnimationBuilder'

我只是按照 these 说明努力让我的应用程序加载(它挂在初始屏幕上)。

简而言之,我是这样做的:

npm install -g ionic@latest
npm install ionic-angular@3.7.0 --save
npm install @ionic/app-scripts@3.0.0 --save-dev
npm install @angular/core@4.4.3 --save
npm install @angular/common@4.4.3 --save
npm install @angular/compiler@4.4.3 --save
npm install @angular/compiler-cli@4.4.3 --save
npm install @angular/forms@4.4.3 --save
npm install @angular/http@4.4.3 --save
npm install @angular/platform-browser@4.4.3 --save
npm install @angular/platform-browser-dynamic@4.4.3 --save
npm install rxjs@5.4.3 --save
npm install zone.js@0.8.17 --save

现在当我 运行 ionic package build ios 我得到这些错误:

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts, line: 8 
            Module '"/Users/eamonwhite/ionicmane/myApp/node_modules/@angular/animations/animations"' has no exported 
            member 'AnimationBuilder'. 

       L7:      constructor(rootRenderer: RendererFactory2, doc: any);
       L8:      build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts, line: 8 
            Module '"/Users/eamonwhite/ionicmane/myApp/node_modules/@angular/animations/animations"' has no exported 
            member 'AnimationFactory'. 

       L7:      constructor(rootRenderer: RendererFactory2, doc: any);
       L8:      build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts, line: 8 
            Module '"/Users/eamonwhite/ionicmane/myApp/node_modules/@angular/animations/animations"' has no exported 
            member 'AnimationOptions'. 

       L7:      constructor(rootRenderer: RendererFactory2, doc: any);
       L8:      build(animation: AnimationMetadata | AnimationMetadata[]): AnimationFactory;

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'flush' from 
            class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'listen' from 
            class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'onInsert' from 
            class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'onRemove' from 
            class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 
            'registerTrigger' from class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

[14:21:32]  typescript: node_modules/@angular/platform-browser/animations/src/providers.d.ts, line: 5 
            Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'setProperty' 
            from class 'AnimationEngine'. 

       L4:  import { AnimationRendererFactory } from './animation_renderer';
       L5:  export declare class InjectableAnimationEngine extends AnimationEngine {
       L6:      constructor(driver: AnimationDriver, normalizer: AnimationStyleNormalizer);

Error: Failed to transpile program
    at new BuildError (/Users/eamonwhite/ionicmane/myApp/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /Users/eamonwhite/ionicmane/myApp/node_modules/@ionic/app-scripts/dist/transpile.js:159:20
    at transpileWorker (/Users/eamonwhite/ionicmane/myApp/node_modules/@ionic/app-scripts/dist/transpile.js:107:12)
    at Object.transpile (/Users/eamonwhite/ionicmane/myApp/node_modules/@ionic/app-scripts/dist/transpile.js:64:12)
    at /Users/eamonwhite/ionicmane/myApp/node_modules/@ionic/app-scripts/dist/build.js:106:82

我检查了文件夹,我认为它没有找到的所有东西都在那里(在 d.ts 文件中)。

任何帮助都会很棒。我这样做是为了让我的应用 运行ning,在 iOS 11 发布后,它开始卡在 splashscreen.

上加载

我需要更新动画模块:

npm install @angular/animations@latest --save