Data: [email protected] does not work in IE11

Created on 26 Aug 2019  路  21Comments  路  Source: emberjs/data

Steps to reproduce:

ember new test-ie
ember build --prod

When trying to browse in IE, the page will stay blank and throw:

SCRIPT5009: 'Symbol' is undefined
vendor.js (85124,5)
Bug Release Infra

Most helpful comment

@runspired can we please get a 3.12.1 release with this fix?

All 21 comments

Thank you for reporting! Definitely seems like a regression.

I've just hit the same thing.

This is what is causing it to throw in my case:

Screenshot 2019-08-26 at 22 32 11

It might be related to emberjs/ember.js#18208, which would require a 3.12.1 release, otherwise LTS can't be used if IE11 or Safari 9 are supported.

I have pinned it down to Ember Data actually. When ever I upgrade Ember Data to v3.11/v3.12 Symbol('DEBUG-ts-brand') is added to vendor.js and IE 11 fails. I downgraded back to Ember Data v3.10 and kept Ember.js itself v3.12 and my CI passes.

@raido can you search and see if your vendor.js contains any const?

@raido can you search and see if your vendor.js contains any const?

Yes, there are few lines of const present in vendor.js with both ED v3.10 and v3.11/v3.12.

Checked by running CI=true ember build --prod.

We should move this to the ember-data repo. @rwjblue

RE Symbol('DEBUG-ts-brand') this will be stripped from production builds. We do have other usage of Symbol that is not guarded by DEBUG though.

RE const unsure where that would be coming from but CI=true ember build --prod does not necessarily target IE11, so I would check your targets.

also fwiw 3.12 is not yet LTS :P

RE Symbol('DEBUG-ts-brand') this will be stripped from production builds.

Ya, it should, but it isn't (and there are no if (DEBUG) { guards where it is defined).

(moved to emberjs/data)

I am targeting IE11 (including Browserstack running tests with IE11). The const is not a that much of a problem for me. The Symbol issue is, so perhaps let's keep this issue focused on that.

It seems my testing with v3.11 was actually testing v3.12 anyway - https://github.com/emberjs/data/issues/6378 - because of floating versions.

@dcyriller

I'll dig into it

@runspired can we please get a 3.12.1 release with this fix?

@btecu sure, but I believe there is one symbol still not being stripped.

The last Symbol to fix is present on master but not in v3.12. I still have to do the fix with WeakMap to solve the whole Symbol issue. I could port the current fix to 3.12 if you think it makes sense.

@dcyriller lets port the current fix so that we can fix 3.12 then get back to the WeakMap fix

3.12.1 with this fix has been released

Unfortunately, ember-data 3.12.1 still doesn't work with IE11.
I now get a different error:
image

I saw there's issue #6326 about this, not specific to IE.
I do have "jquery-integration": true.

Was this page helpful?
0 / 5 - 0 ratings