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

Object doesn't support property or method 'includes' in IE #20

Open
rafatwork opened this issue Feb 13, 2018 · 0 comments
Open

Object doesn't support property or method 'includes' in IE #20

rafatwork opened this issue Feb 13, 2018 · 0 comments

Comments

@rafatwork
Copy link

My application stopped running in IE when trying to implement this middleware.

Appears it uses the includes() method, which is not supported in IE: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

Users needing to support IE should be polyfilling this.
FYI: for create-react-app users, a "import 'core-js/es7/array';" in your index.js should suffice as well.

Just leaving it here, unsure if this is something that should be fixed in the module or at least documented somewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant