I've been encountering issues with IE11 in Angular 5 for a few days now. I've enabled polyfills:
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';
and added the meta tag for IE:
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
Everythign works fine when I start the project with ng serve. However, when I build the project with --prod option, the app stops working in IE11. Chrome and Firefox are still working correctly.
Console log:
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)
...
SCRIPT5011: Can't execute code from a freed script
File: polyfills.6460c1711c3b9abc371d.bundle.js, Line: 1, Column: 69035
When I try to debug it, I encounter some errors in polyfills.bundle.js:
Thank you for your assistance.