Ich habe einen Fehler, während ich versuche, mein angular2-Projekt auszuführen. Es trat nach dem Wechsel vom PC mit ubuntu auf MacOS X auf. Knotenversion: 7.7.4, npm-Version: 4.1.2. Ich bin npm webpack-dev-server --inline --progress --watch --port 8180
laufen und dann bin ich diese Informationen bekommen:Fehler beim Kompilieren des Webpacks
WARNING in ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js
69:15-36 Critical dependency: the request of a dependency is an expression
WARNING in ./~/@angular/core/src/linker/system_js_ng_module_factory_loader.js
85:15-102 Critical dependency: the request of a dependency is an expression
WARNING in ./~/angular2-focus/~/@angular/core/@angular/core.es5.js
5889:15-36 Critical dependency: the request of a dependency is an expression
WARNING in ./~/angular2-focus/~/@angular/core/@angular/core.es5.js
5905:15-102 Critical dependency: the request of a dependency is an expression
ERROR in [default] /Users/user/Documents/Java/WORK/mediahelper/media-helper/src/main/web/node_modules/angular2-focus/node_modules/@angular/core/src/animation/animation_metadata_wrapped.d.ts:12:32
Initializers are not allowed in ambient contexts.
[...]
ERROR in [default] /Users/user/node_modules/@types/core-js/index.d.ts:651:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] /Users/user/node_modules/@types/core-js/index.d.ts:666:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] /Users/user/node_modules/@types/core-js/index.d.ts:680:4
All declarations of 'prototype' must have identical modifiers.
ERROR in [default] /Users/user/node_modules/@types/core-js/index.d.ts:692:4
All declarations of 'value' must have identical modifiers.
ERROR in [default] /Users/user/node_modules/@types/core-js/index.d.ts:804:4
All declarations of 'prototype' must have identical modifiers.
Während dieser Link, um die Frage zu beantworten, kann es ist es besser, die wesentlichen Teile der Antwort hier aufzunehmen und den Link als Referenz zur Verfügung zu stellen. Nur-Link-Antworten können ungültig werden, wenn sich die verknüpfte Seite ändert. - [Aus Bewertung] (/ review/low-quality-posts/15671806) – G5W
hab es, danke. –
Großartig, es funktioniert! – Qwertiy