Styled-components: IE11 and Object.assign

Created on 14 Nov 2016  路  3Comments  路  Source: styled-components/styled-components

Version

1.0.10

IE11 barfs an error because the use of Object.assign:

Uncaught (in promise) TypeError: Object doesn't support property or method 'assign'

Might be worth mentioning that it needs a polyfill, if it can't be solved some other way?

bug

Most helpful comment

@didierfranc I figured as much and added Object.assign to my Polyfill.io request, but it should be documented at least.

All 3 comments

Running app on IE without polyfill like polyfill.io is not an option

@didierfranc I figured as much and added Object.assign to my Polyfill.io request, but it should be documented at least.

We should be using the object-assign package to avoid this, and ponyfill it similar to what (afaik) React does

Was this page helpful?
0 / 5 - 0 ratings