Skip to content

Errors in IE11 when importing polyfills using es-abstract. #5615

@JustinTRoss

Description

@JustinTRoss

Is this a bug report?

Yes

If you import react-app-polyfill/ie11 before importing any shim/polyfill using es-abstract lib, you get an error in IE11 (possibly other browsers as well). Some example polyfills: object.entries, array-includes, object.values

Error: object doesn't support property or method Symbol(Symbol.iterator).9_<some-hash>
Location: es-abstract -> GetIntrinsic.js at line 56.
Workaround: import react-app-polyfill/ie11 after importing all shims/polyfills using es-abstract.

Environment

IE11, presumably anything IE.

Steps to Reproduce

  1. Create new app
  2. in index.js, on line 1, import react-app-polyfill/ie11
  3. in index.js, on line 2, import objectValues from 'object.values/polyfill'
  4. Open your app in IE11.

Expected Behavior

App would run.

Actual Behavior

App crashes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions