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

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

Open
leesaxbygresham opened this issue Oct 17, 2018 · 0 comments
Open

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

leesaxbygresham opened this issue Oct 17, 2018 · 0 comments

Comments

@leesaxbygresham
Copy link

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.

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