角度5のIE11で2,3日問題があります。私はpolyfillsをオンにしている:角度5(IE11)エラー:未知(約束):エラー:いずれのルートにも一致しません
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es7/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
とIEのためのメタタグを設定する:私はに仕えるNG でプロジェクトを開始するとき
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
すべてが働いています。しかし、--prodオプションを使ってプロジェクトをビルドすると、IE11ではアプリが動作しません。 FirefoxとChromeは正常に動作しています。
コンソールログ:
ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'gui/account'
Error: Cannot match any routes. URL Segment: 'gui/account'
at Anonymous function (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:401190)
at e.prototype.error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:386643)
at e.prototype._error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7955)
at e.prototype.error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7661)
at e.prototype._error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7955)
at e.prototype.error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7661)
at e.prototype._error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7955)
at e.prototype.error (http://localhost:8080/gui/main.d12ff1833b14b6308efb.bundle.js:1:7661)
at e.prototype._error (http://localhost:8080/gui/main.d12ff1833
SCRIPT5011: Can't execute code from a freed script
File: polyfills.6460c1711c3b9abc371d.bundle.js, Line: 1, Column: 69035
私はそれをデバッグしようとすると、私はpolyfills.bundle.jsにいくつかのエラーが表示されます。
はあなたの助けをたくさんありがとうございます。
これは、この同じ問題に根付いているようです。 https://stackoverflow.com/questions/83132/what-causes-the-error-cant-execute-code-from-a-freed-script – ToddB
[エラーを引き起こす原因は次のとおりです。解放されたスクリプト "](https://stackoverflow.com/questions/83132/what-causes-the-error-cant-execute-code-from-a-freed-script) – ToddB