Angular 6 project not loading in IE11

前端 未结 3 345
时光取名叫无心
时光取名叫无心 2021-01-15 05:48

My angular 6 project loads in chrome but it does not load in IE11. I used the following question: Angular 2 / 4 / 5 not working in IE11 to try and solve the issue but none o

相关标签:
3条回答
  • 2021-01-15 06:26

    An update of angular-cli, webpack might be helpful.

    I have solved an issue in IE 10. Reference: TypeError: Unable to get property 'ngMetadataName' of undefined or null reference on IE 10

    0 讨论(0)
  • 2021-01-15 06:31

    I followed the suggestion to comment out code until my App started in IE 11.

    I had an image path in my menu component that was causing the issue. Sorted the path and the app started.

    0 讨论(0)
  • Did you verify that any subscribe function that is running outside of your ts files are using

    .subscribe(function(data) { });
    

    instead of

    .subscribe((data) => {});
    

    IE is not able to execute this style of anonymous function properly.

    Also make sure you are not using any ES6 components outside of your angular app without having a shim to handle them (https://kangax.github.io/compat-table/es6/)

    0 讨论(0)
提交回复
热议问题