This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
DI Error in IE following shim installation #926
Closed
Description
I had created issue #891 where I was getting a 'WeakMap' is undefined error when I tried to load the ASP.NET Core Angular 2 app in IE10. @SteveSandersonMS suggested I import core-js
which resolved the WeakMap issue, but now I'm getting this error:
SCRIPT5022: Error: DI Error
vendor.js, line 104835 character 13
The app works fine in all other browsers.
Activity
MarkPieszak commentedon May 10, 2017
I'm not sure which shim you've used, but you need to have the correct shims to for IE support lower than IE11.
See here for a reference of what you'd need: https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/master/Client/polyfills/polyfills.ts#L6-L24
im1dermike commentedon May 10, 2017
@MarkPieszak I ran the following:
Then changed the top of my boot-client.ts file to look like this:
The same issue remains.
im1dermike commentedon Jun 1, 2017
Any update on this? It's not really OK that this library doesn't work in IE10.
SteveSandersonMS commentedon Jun 5, 2017
We have an existing issue tracking support for older IE versions at #484. I'll close this as a duplicate of that.
The template isn't meant to support all legacy browsers by default, as that would bloat the resulting application and not everyone needs that support. However I recognise that we could use clear docs on what polyfills are needed for people who do want to support legacy browsers.