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

IE11: Object doesn't support property or method 'includes' #397

Closed
c1aphas opened this issue Jul 30, 2019 · 2 comments · Fixed by #416
Closed

IE11: Object doesn't support property or method 'includes' #397

c1aphas opened this issue Jul 30, 2019 · 2 comments · Fixed by #416
Labels

Comments

@c1aphas
Copy link

c1aphas commented Jul 30, 2019

🐛 Bug Report

Hi!
According to docs browser support is:

v5.x (React v16.3+): IE11, IE 9+ (with Map + Set polyfills), all evergreen browsers

But my project fails on this line https://github.com/smooth-code/loadable-components/blob/d7c3f58059a798dc1d38f95da79f374e998977ad/packages/component/src/loadableReady.js#L44

includes doesn't supported in IE up to ie11

Am i doing something wrong? My project uses razzle boilerplate with loadable-components example: https://github.com/smooth-code/loadable-components/tree/master/examples/razzle

@gregberge
Copy link
Owner

Hmm yes you are right, for now you can just include the polyfill. Could you submit a PR to fix it?

@gregberge gregberge added the bug label Aug 6, 2019
@gregberge
Copy link
Owner

By fixing it I mean using indexOf instead of includes.

Haroenv added a commit to Haroenv/loadable-components that referenced this issue Aug 22, 2019
I didn't check this, but it seems trivial

fixes gregberge#397
@Haroenv Haroenv mentioned this issue Aug 22, 2019
gregberge pushed a commit that referenced this issue Aug 28, 2019
fivethreeo pushed a commit to fivethreeo/loadable-components that referenced this issue Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants