Angular application gives blank page in IE11

2019-07-31 19:02发布

问题:

Angular application loads only in Internet Explorer browser versions, when Developer Tools(F12) sidebar is opened. There aren't any MDL components in use, so it is different from this issue. I can't see any errors in console.

回答1:

If i understand question,blank page will solve:

go to polyfills.ts and uncomment this imports

   import 'core-js/es6/symbol';
   import 'core-js/es6/object';
   import 'core-js/es6/function';
   import 'core-js/es6/parse-int';     //Uncommented to enable IE11
   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';