Update boot-client.ts to handle IE 11 shim issues #746

Closed
opened 2025-08-09 17:17:30 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @ADefWebserver on 5/18/2017

In IE 11, when you get error like this:
Unable to get property 'apply' of undefined or null reference

In functions like this:

function combine(options) {
    return ((Object)).assign.apply(((Object)), [{}].concat(options));
}	

in the vendor.js file

This article tells you to use core-js because Angular already has a dependency on it:
http://stackoverflow.com/questions/41276692/angular2-ie11-unable-to-get-property-apply-of-undefined-or-null-reference

You add:
import "core-js/client/shim";

to the top of boot-client.ts

and the problem goes away.

This issue may be related:
https://github.com/aspnet/JavaScriptServices/issues/926

*Originally created by @ADefWebserver on 5/18/2017* In IE 11, when you get error like this: Unable to get property 'apply' of undefined or null reference In functions like this: ``` function combine(options) { return ((Object)).assign.apply(((Object)), [{}].concat(options)); } ``` in the vendor.js file This article tells you to use core-js because Angular already has a dependency on it: http://stackoverflow.com/questions/41276692/angular2-ie11-unable-to-get-property-apply-of-undefined-or-null-reference You add: import "core-js/client/shim"; to the top of boot-client.ts and the problem goes away. This issue may be related: https://github.com/aspnet/JavaScriptServices/issues/926
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#746
No description provided.