0
は、私が最近@angularアニメーションはエラーを構築する - 何もエクスポートされたメンバーのAnimationBuilder "
NPM更新
のコマンドを実行し、アンギュラバージョン4.2.6をプルダウンしていません。私は
NGが
を構築し実行したときにしかし、私はすべての角/アニメーション@に関連したビルドエラーの束を受け取りました。
は、下記を参照してください:ここで
[[email protected] afngine-ng2]$ ng build
Hash: eeeb38b2753a21366397
Time: 34119ms
chunk {0} main.bundle.js, main.bundle.js.map (main) 870 kB {4} [initial] [rendered]
chunk {1} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 160 kB {5} [initial] [rendered]
chunk {2} styles.bundle.js, styles.bundle.js.map (styles) 714 kB {5} [initial] [rendered]
chunk {3} scripts.bundle.js, scripts.bundle.js.map (scripts) 471 kB {5} [initial] [rendered]
chunk {4} vendor.bundle.js, vendor.bundle.js.map (vendor) 3.66 MB [initial] [rendered]
chunk {5} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
ERROR in /usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts (8,10): Module '"/usr/share/nginx/afngine-ng2/node_modules/@angular/animations/animations"' has no exported member 'AnimationBuilder'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts (8,28): Module '"/usr/share/nginx/afngine-ng2/node_modules/@angular/animations/animations"' has no exported member 'AnimationFactory'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/animation_builder.d.ts (8,65): Module '"/usr/share/nginx/afngine-ng2/node_modules/@angular/animations/animations"' has no exported member 'AnimationOptions'.
ERROR in /usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'flush' from class 'AnimationEngine'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'listen' from class 'AnimationEngine'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'onInsert' from class 'AnimationEngine'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'onRemove' from class 'AnimationEngine'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'registerTrigger' from class 'AnimationEngine'.
/usr/share/nginx/afngine-ng2/node_modules/@angular/platform-browser/animations/src/providers.d.ts (5,22): Non-abstract class 'InjectableAnimationEngine' does not implement inherited abstract member 'setProperty' from class 'AnimationEngine'.
これは、古いパッケージが 'node_modules'でスタックされている可能性があります。 node_modulesフォルダと 'npm cache clean 'を削除すると、通常、' package.json'を最新の状態に保つ限り、これらの問題が解決されます。 –