6
アプリはChromeとIE(11)では正常に動作しますが、Firefox(42.0)やSafari(5.1.7)では正常に動作しません。Angular2アプリはChromeとIEでは動作しますが、FirefoxやSafariでは動作しません。
FIREFOX:[[プロトタイプ]]オブジェクトのあなたのコードは非常にゆっくりと実行するようになりますを変異
。 Object.create es6-shim.js:1338:11
を使用して、正しい初期[[Prototype]]値を持つオブジェクトを作成します。角2は開発モードで実行されています。プロダクションモードを有効にするには、enableProdMode()を呼び出します。 angular2.dev.js:351:5
例外:エラー:第二引数のangular2.dev.jsとして期待INT32: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
間違って大幅に高く評価されているものについての任意のアイデア。それは "BrowserDomAdapter"と関係があるようです。
firefoxに関する問題は、0.34.0(es6-shim)で[修正](https://github.com/paulmillr/es6-shim/issues/347)でした。また、サファリの場合、requestAnimationFrameには[polyfill](https://gist.github.com/paulirish/1579671)があります。 –
私はes6-shimを参照しているようです:v0.33.13。アップグレードし、ポリフィルを追加します。先端のための多くのthx! – brando
@EricMartinezは魅力的に働いた! – brando