I have added es6shim as well but i'm getting above error on IE11 and the angular2 app is not working.
Asked
Active
Viewed 1,689 times
0
-
Possible duplicate of [Angular 2 not working with MS Edge](http://stackoverflow.com/questions/39540851/angular-2-not-working-with-ms-edge) – Roy Jan 26 '17 at 07:45
-
@Roy it says zone.js particularly in the error but this doesn't. I have installed the latest zone.js anyway still not working. – Kokulan Jan 26 '17 at 07:49
-
try to add in index under html tag – Yoav Schniederman Jan 26 '17 at 07:58
-
@YoavSchniederman the first html tag you provided is not found – Kokulan Jan 26 '17 at 08:03
1 Answers
0
Try adding the following to index.html:
<!doctype html>
<html lang="en">
<script src="https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js" type="text/plain"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.9/es5-sham.js" type="text/plain"></script>

yivi
- 42,438
- 18
- 116
- 138

Yoav Schniederman
- 5,253
- 3
- 28
- 32
-
it gives me the following error `SEC7112: Script from https://raw.githubusercontent.com/angular/angular/66df335998d097fa8fe46dec41f1183737332021/shims_for_IE.js was blocked due to mime type mismatch localhost:3000` – Kokulan Jan 26 '17 at 08:11
-
ok, if your client code is inside server code as java play you need to remove the security block – Yoav Schniederman Jan 26 '17 at 08:15
-
-
-
I didn't get you but i think it is webpack. This is front end so i'm confused?? – Kokulan Jan 26 '17 at 08:22
-
-
-