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

TypeError on IE 11: Object doesn't support property or method 'includes' #2856

Closed
JimmyLv opened this issue Jul 26, 2017 · 3 comments
Closed

Comments

@JimmyLv
Copy link
Contributor

JimmyLv commented Jul 26, 2017

Possible Unhandled Promise Rejection (id: 0):
  TypeError: Object doesn't support property or method 'includes'
  at Anonymous function (http://localhost:3000/static/js/bundle.js:62967:36566)

any missing polyfills for IE?

@Timer
Copy link
Contributor

Timer commented Jul 26, 2017

You must include polyfills required for your application yourself; we do not polyfill the environment.

See https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#supported-language-features-and-polyfills.

@Timer
Copy link
Contributor

Timer commented Jul 26, 2017

You should install core-js and then in your index.js add:

import 'core-js/fn/string/includes';

@JimmyLv
Copy link
Contributor Author

JimmyLv commented Jul 26, 2017

Thanks @Timer, actually it should be import 'core-js/es7/array';, which not been supported in IE11 for now.

@lock lock bot locked and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants