Aspnetcore-angular-universal: IE11, ECMAScript Object property assignment problem

Created on 12 Dec 2018  路  3Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Hello,
On the PROD, Internet Explorer 11 doesn't work properly. I'm not having any issue when im working on localhost, but after i publish my app to PROD it gives me error below:

    SCRIPT1003: Expected ':'
    main-client.js (559,109)

I investigated to main-client.js, I found this:

    Pr={"傻defineBase":defineBase,
    "傻defineComponent":defineComponent,
    "傻defineDirective":H,
    defineInjectable, ## This is line:559 and column:109 ##

defineInjectable need to be "defineInjectable": defineInjectable. I've tested this in IE11 developer tool with following example,
c = 3; d=4; values = {a:1, b:2, c, d} output is: Expected ':'

But this is what IE11 wants:
c = 3; d=4; values = {a:1, b:2, c:c, d:d} outpus is: OK

Is it related with webpack? Any solution for this?

Thanks.

HOW TO - Guide

Most helpful comment

Hi @rcanpahali

I just addressed this issue today (exactly as you described... working local but not in a server). I solved by targeting ecmac 5 instead of 6 as described at https://github.com/MarkPieszak/aspnetcore-angular-universal/issues/666 . Hope it helps.

/Alex

All 3 comments

Hi @rcanpahali

I just addressed this issue today (exactly as you described... working local but not in a server). I solved by targeting ecmac 5 instead of 6 as described at https://github.com/MarkPieszak/aspnetcore-angular-universal/issues/666 . Hope it helps.

/Alex

Thank you so much mate, It solved my problem as well.

Glad you got it figured out!
I should make a note of that - for folks that need IE11 support.

Apologies for not getting back to you sooner!

Was this page helpful?
0 / 5 - 0 ratings