New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into
base: dev
from

Conversation

Projects
None yet
6 participants
@ADefWebserver

ADefWebserver commented May 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:
#926

Update boot-client.ts
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 vendor.js

This article tells you to use Core.js:
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:
#926

A repro project is here:
https://www.dropbox.com/s/qq0fwi1kn42nkfv/HelloWorldData-ng4.zip?dl=0
@AmrineA

This comment has been minimized.

AmrineA commented May 19, 2017

I can confirm that this change does resolve the error referenced.

@im1dermike

This comment has been minimized.

im1dermike commented May 24, 2017

This did not resolve my issue #926

@SteveSandersonMS

This comment has been minimized.

Member

SteveSandersonMS commented Jan 25, 2018

Thanks for contributing this. Since the Angular template has now moved to being Angular CLI-based, we no longer have code in this repo to determine what polyfills are placed there - we take the output from Angular CLI. As such this no longer applicable, but thanks very much for getting involved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment