L'app funziona in Chrome e IE (11), ma non in Firefox (42.0) o Safari (5.1.7).L'app Angular2 funziona con Chrome e IE, ma non con Firefox o Safari
FIREFOX:
mutando il [[Prototype]] di un oggetto causerà il codice per eseguire molto lentamente; crea invece l'oggetto con il valore iniziale [[Prototype]] corretto utilizzando Object.create es6-shim.js: 1338: 11
Angular 2 è in esecuzione in modalità di sviluppo. Chiama enableProdMode() per abilitare la modalità di produzione. angular2.dev.js: 351: 5
ECCEZIONE: Errore: Previsto Int32 come secondo argomento angular2.dev.js: 23524
BrowserDomAdapter</BrowserDomAdapter.prototype.logError() angular2.dev.js:23514
BrowserDomAdapter</BrowserDomAdapter.prototype.logGroup() angular2.dev.js:23525
ExceptionHandler</ExceptionHandler.prototype.call() angular2.dev.js:1145
PlatformRef_</PlatformRef_.prototype._initApp/</<() angular2.dev.js:14801
NgZone</NgZone.prototype._notifyOnError() angular2.dev.js:5796
NgZone</NgZone.prototype._createInnerZone/errorHandling<.onError() angular2.dev.js:5700
run() angular2-polyfills.js:141
[email protected]://localhost:53861/lib/es6-shim/es6-shim.js:1113:14
TemplateParseVisitor</[email protected]://localhost:53861/lib/anguar2/angular2.dev.js:24301:27
TemplateParseVisitor</[email protected]://localhost:53861/lib/anguar2/angular2.dev.js:24154:24
HtmlElementAst</[email protected]://localhost:53861/lib/anguar2/angular2.dev.js:20216:14
htmlVisitAll/<@http://localhost:53861/lib/anguar2/angular2.dev.js:20227:23
[email protected]://localhost:53861/lib/es6-shim/es6-shim.js:1107:14
[email protected]://localhost:53861/lib/anguar2/angular2.dev.js:20226:5
TemplateParser</[email protected]://localhost:53861/lib/anguar2/angular2.dev.js:24038:20
TemplateCompiler</TemplateCompiler.prototype._compileComponentRuntime/done<@http://localhost:53861/lib/anguar2/angular2.dev.js:24669:32
[email protected]://localhost:53861/lib/anguar2/angular2-polyfills.js:138:14
NgZone</NgZone.prototype._createInnerZone/<.$run/<@[…]
SAFARI:
EXCEPTION: Error during instantiation of BrowserDetails! (Token Promise<ComponentRef> -> DynamicComponentLoader -> Compiler -> RuntimeCompiler -> ProtoViewFactory -> Renderer -> DomRenderer -> AnimationBuilder -> BrowserDetails).
angular2.dev.js:23514ORIGINAL EXCEPTION: TypeError: 'undefined' is not a function (evaluating 'window.requestAnimationFrame(callback)')
Potentially unhandled rejection [2] Error: EXCEPTION: Error during instantiation of BrowserDetails! (Token Promise<ComponentRef> -> DynamicComponentLoader -> Compiler -> RuntimeCompiler -> ProtoViewFactory -> Renderer -> DomRenderer -> AnimationBuilder -> BrowserDetails).
ORIGINAL EXCEPTION: TypeError: 'undefined' is not a function (evaluating 'window.requestAnimationFrame(callback)')
\t Error loading http://localhost:53861/app/bootDesktop.js
Tutte le idee su ciò che è sbagliato molto apprezzato. Sembra che abbia qualcosa a che fare con "BrowserDomAdapter".
Il problema con firefox era [risolto] (https://github.com/paulmillr/es6-shim/issues/347) in 0.34.0 (es6-shim). E per il safari c'è un [polyfill] (https://gist.github.com/paulirish/1579671) per requestAnimationFrame. –
Sembra che io faccia riferimento a es6-shim: v0.33.13. Aggiornerà e aggiungerà il polyfill. Molti grazie per la punta! – brando
@EricMartinez ha funzionato come un fascino! – brando