Im using angular 9 application, on-load of the app Im getting this error in IE11. Error: In this configuration Angular requires Zone.js. And Component doesn't load and shows the above error in console. I tried adding import 'zone.js'. But it didn't work. Also, tried adding in index.html file. But no luck. This issue happens only in IE11. Works fine in Chrome and Firefox.
Asked
Active
Viewed 3,898 times
2
-
https://angular.io/guide/browser-support – Nathan Beck Oct 05 '20 at 14:28
-
Have you tried to run `npm install --save zone.js`? If it still can't work, please provide [a minimal code snippet](https://stackoverflow.com/help/minimal-reproducible-example) which can **reproduce** the issue so that we can have a test and have a better understanding of the issue. – Yu Zhou Oct 06 '20 at 09:31
2 Answers
2
When we import zone.js in index.html, it works fine.
<script src="https://cdnjs.cloudflare.com/ajax/libs/zone.js/0.8.19/zone.js"></script>

Suryaprakash
- 80
- 1
- 11
0
You need to load libraries as mentioned before:
https://stackoverflow.com/a/39593160/10659482
<script src="node_modules/core-js/client/shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>

Akif
- 7,098
- 7
- 27
- 53