Skip to content
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

[email protected] does not work in IE11 #6380

Closed
btecu opened this issue Aug 26, 2019 · 21 comments · Fixed by #6389 or #6430
Closed

[email protected] does not work in IE11 #6380

btecu opened this issue Aug 26, 2019 · 21 comments · Fixed by #6389 or #6430
Assignees
Labels
🏷️ bug This PR primarily fixes a reported issue

Comments

@btecu
Copy link
Contributor

btecu commented Aug 26, 2019

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)
@rwjblue
Copy link
Member

rwjblue commented Aug 26, 2019

Thank you for reporting! Definitely seems like a regression.

@raido
Copy link

raido commented Aug 26, 2019

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

@btecu
Copy link
Contributor Author

btecu commented Aug 26, 2019

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.

@raido
Copy link

raido commented Aug 26, 2019

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.

@btecu
Copy link
Contributor Author

btecu commented Aug 26, 2019

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

@raido
Copy link

raido commented Aug 26, 2019

@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.

@runspired
Copy link
Contributor

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.

@runspired
Copy link
Contributor

also fwiw 3.12 is not yet LTS :P

@rwjblue
Copy link
Member

rwjblue commented Aug 26, 2019

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).

@rwjblue rwjblue transferred this issue from emberjs/ember.js Aug 26, 2019
@rwjblue
Copy link
Member

rwjblue commented Aug 26, 2019

(moved to emberjs/data)

@rwjblue rwjblue changed the title Ember 3.12 LTS does not work in IE [email protected] does not work in IE11 Aug 26, 2019
@rwjblue rwjblue added the Bug label Aug 26, 2019
@raido
Copy link

raido commented Aug 26, 2019

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.

@raido
Copy link

raido commented Aug 26, 2019

@raido
Copy link

raido commented Aug 26, 2019

It seems my testing with v3.11 was actually testing v3.12 anyway - #6378 - because of floating versions.

@runspired
Copy link
Contributor

@dcyriller

@dcyriller
Copy link
Contributor

I'll dig into it

@btecu
Copy link
Contributor Author

btecu commented Aug 29, 2019

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

@runspired
Copy link
Contributor

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

@runspired runspired reopened this Sep 9, 2019
@runspired runspired self-assigned this Sep 9, 2019
@dcyriller
Copy link
Contributor

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.

@runspired
Copy link
Contributor

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

@runspired
Copy link
Contributor

3.12.1 with this fix has been released

@btecu
Copy link
Contributor Author

btecu commented Sep 11, 2019

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.

@runspired runspired added 🏷️ bug This PR primarily fixes a reported issue and removed Bug labels Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bug This PR primarily fixes a reported issue
Projects
None yet
5 participants