1
我剛剛遵循these指示,努力讓我的應用程序加載我的應用程序(它掛在啓動畫面上) 。Module'「node_modules/@ angular/animations/animations」'沒有導出成員'AnimationBuilder'
總之我這樣做:
npm install -g [email protected]
npm install [email protected] --save
npm install @ionic/[email protected] --save-dev
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install @angular/[email protected] --save
npm install [email protected] --save
npm install [email protected] --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
文件中)。
任何幫助將是偉大的。爲了讓我的應用程序正常運行,我正在這樣做,在iOS 11
發佈後,它開始在splashscreen
上卡住加載。
你的答案救我,:d – core114