ich im Moment ein Problem habe, wo, wenn ich das ‚BrowserAnimationsModule‘ Modul in meiner Anwendung umfassen bekomme ich folgende Fehler:Fehler mit Animationen Modul, wenn zu Angular4 Upgrade
(index):26 Error: (SystemJS) Cannot read property 'prototype' of undefined
TypeError: Cannot read property 'prototype' of undefined
at __extends (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:15:68)
at eval (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:328:5)
at Object.eval (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:337:2)
at Object.eval (http://degould-login.dev/app/app.module.js:36:20)
at eval (http://degould-login.dev/app/app.module.js:82:4)
at eval (http://degould-login.dev/app/app.module.js:83:3)
at eval (<anonymous>)
Evaluating http://degould-login.dev/app/app.module.js
Evaluating http://degould-login.dev/app/main.js
Error loading http://degould-login.dev/app/main.js
at __extends (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:15:68)
at eval (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:328:5)
at Object.eval (http://degould-login.dev/node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js:337:2)
at Object.eval (http://degould-login.dev/app/app.module.js:36:20)
at eval (http://degould-login.dev/app/app.module.js:82:4)
at eval (http://degould-login.dev/app/app.module.js:83:3)
at eval (<anonymous>)
Evaluating http://degould-login.dev/app/app.module.js
Evaluating http://degould-login.dev/app/main.js
Error loading http://degould-login.dev/app/main.js
(anonymous) @ (index):26
ZoneDelegate.invoke @ [email protected]?main=browser:365
Zone.run @ [email protected]?main=browser:125
(anonymous) @ [email protected]?main=browser:760
ZoneDelegate.invokeTask @ [email protected]?main=browser:398
Zone.runTask @ [email protected]?main=browser:165
drainMicroTaskQueue @ [email protected]?main=browser:593
ZoneTask.invoke @ [email protected]?main=browser:464
ich Figur versucht haben, dies heraus, aber ich kann nicht für das Leben von mir sehen, was hier falsch läuft.
Ich habe diese drei Zeilen in meiner SystemJS Konfigurationsdatei unter the'map‘Eigenschaft:
'@angular/animations': 'node_modules/@angular/animations/bundles/animations.umd.min.js',
'@angular/animations/browser':'node_modules/@angular/animations/bundles/animations-browser.umd.js',
'@angular/platform-browser/animations': 'node_modules/@angular/platform-browser/bundles/platform-browser-animations.umd.js',
Und ich habe das Modul in meinem NgModule Objekt enthält:
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
//Instantiate the Angular Object
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
Der Fehler ausgelöst wird, vor der Seite bekommen Sie sogar eine Gelegenheit zum laden.
Kann mir jemand einen Einblick geben, was hier passiert?
Dank
Sie versucht haben, wieder installieren/neu starten Sie die App? – TheUnreal
Ja Ich habe versucht, die NPM-Pakete neu zu installieren und die App neu zu starten. Scheint keinen Unterschied zu machen :( – devoncrazylegs
mit dem gleichen Problem auch, meine npm-Pakete sind alle aktualisiert. – tjvg1991