Skip to content

Error in IE11 when used with react-hot-loader #10

@leesaxbygresham

Description

@leesaxbygresham

Gettting the following error in IE11 when react-currency-formatter is used with react-hot-loader:

Object.getPrototypeOf: 'this' is not an Object.

It appears that, in IE11, if a non object value is passed into Object.getPrototypeOf('string') it throws an error.

This is used in react-hot-loader here:

function isReactClassInstance(Component) {
  return Component && isReactClass({ prototype: Object.getPrototypeOf(Component) });
}

And as the <Currency /> component seems to return a plain string $1.00, and not markup <span>$1.00</span> it falls over.

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