React-jsonschema-form: [MS IE 11] Object doesn't support property or method 'assign'

Created on 18 May 2016  路  14Comments  路  Source: rjsf-team/react-jsonschema-form

Description

[MS IE 11] Object doesn't support property or method 'assign'

Steps to Reproduce

  1. Open any MS Internet Explorer (I used IE 11)
  2. Open playground https://mozilla-services.github.io/react-jsonschema-form/

    Expected behavior

Form is shown

Actual behavior

SCRIPT438: Object doesn't support property or method 'assign'

Version

branch gh-pages

Most helpful comment

Just add <script src="//cdn.polyfill.io/v2/polyfill.min.js"></script> to your html document.

All 14 comments

The build files ensure a polyfill for Object.assign is bundled through babel. If you're producing your own custom builds, it's up to you to install the right polyfills targeting the right platforms in your project.

Wait. You say _branch gh-pages_, that means the playground doesn't work on IE 11? I'm reopening.

I'm really surprised as the bundle.js file clearly shows a polyfill being defined in the source.

Can you confirm this is happening with the playground hosted at http://mozilla-services.github.io/react-jsonschema-form/? (hint: I don't have a Windows machine at hand)

We could also load polyfill.io polyfills by default in the playground.

https://developer.microsoft.com/en-us/microsoft-edge/tools/screenshots/#https://mozilla-services.github.io/react-jsonschema-form/

Confirm, it's for github playground only

Looks like some cases were not transformed

screenshot 2016-05-18 18 59 21

I got the same issue as well as problems with find and findIndex methods for arrays. What should be my code in IE instead?

As mentioned in https://github.com/mozilla-services/react-jsonschema-form/issues/206#issuecomment-220165629 you could load specific polyfills for IE. Didn't that work for you?

I am not sure how should I do that and will it work for other people? In the meantime I already implemented workaround.

Just add <script src="//cdn.polyfill.io/v2/polyfill.min.js"></script> to your html document.

n1k0,

Adding the CDN polyfill above causes:

SCRIPT5022:  Exception thrown and not caught
polyfills.bundle.js (830,34)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mfulton26 picture mfulton26  路  3Comments

sstarrAtmeta picture sstarrAtmeta  路  3Comments

videni picture videni  路  3Comments

elyobo picture elyobo  路  3Comments

j-zimnowoda picture j-zimnowoda  路  3Comments