-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Object.assign polyfill is not being transformed correctly #317
Comments
Any workaround for this? |
@makosblade Maybe you can try the babel-plugin-transform-object-assign work around here react-toolbox/react-toolbox#45 . |
Mozilla should enable |
Considering that most users of It seems to only be a matter of prepending this to the list of plugins in "transform-object-assign", I encourage you to just get it over with, so you can close this issue 🙏 |
We've fixed it already @dalgard |
That's great news – thanks a lot 👍👍 I was just about to make the concession that IE11 appears to need several other things besides I'll look for the latest version, then. How did you fix it? |
You should probably bump the minor version number, since supporting IE11 is a new feature. |
I guess we can close this. |
Prerequisites
Description
When loading the form in an ES5 browser, I get the standard "Undefined is not a function" due to the Object.assign in https://github.com/mozilla-services/react-jsonschema-form/blob/3f36b18cb3a5c233def17747bc4145142ec3d955/src/components/Form.js#L125
In issue #206 it sounds like there is a consensus that babel should be transforming those polyfills, but I .babelrc doesn't seem to have any plugin that tackle Object.assign.
Prob this is the reason you had to load a polyfill specifically.
I wonder if that's intentional. I could use a polyfill library, but I'd prefer if your official npm build transforms that polyfill as well.
I'm using babel with babel transform-runtime on my side, but not recompiling any of the nodes_modules.
Steps to Reproduce
Expected behavior
The form actually loading
Actual behavior
"Undefined is not a function" due to the Object.assign (and no polyfill being loaded)
Version
0.40 (latest)
The text was updated successfully, but these errors were encountered: