Skip to content

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

@rafatwork

Description

@rafatwork

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions