IE11 - "Object doesn't support property or method 'keys'"
jecourtney opened this issue · 2 comments
jecourtney commented
Awesome article!
It works fine in Chrome, but debugging w/ IE11 results in:
"Object doesn't support property or method 'keys'" in app.js (Angular2) related I think, all I can find says to include es6-shim.js, which you do in the gulp. I tried moving it earlier in gulp, but no luck???
Anyone have a solution?
Thanks!
jecourtney commented
I fixed this in IE11 by adding the following shims to _Layout.cshtml directly after stylesheets:
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.33.3/es6-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.20/system-polyfills.js"></script>
<script src="https://npmcdn.com/angular2/es6/dev/src/testing/shims_for_IE.js"></script>
Referece: angular/angular#7144 (Ward Bell, Feb 28)
rlekkr commented
Viva shims_for_IE.js 👯