-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
core 1.5.1 breaks icons 1.* #12621
Comments
Workaround that works for me
|
|
Oh no, my bad. It's |
@oliviertassinari , do you say icons v1 is not supported any more? That's sad because icons v2 do not work with react 15. See https://codesandbox.io/s/ymmnjxn6xv. |
@sergey-su We don't support older versions. We almost never did. React 15.x support stopped 4 months ago. |
I'm concerned about this. As Alternatively, please revert the babel upgrade in 1.5.1, or backport the material-ui/icons fix to the 1.x branch. |
@fzaninotto Fair point. I guess we can make a patch release for |
@material-ui/icons@1.1.1 is out with the fix, I hope that help. |
Thanks! |
Hi @oliviertassinari. I'm trying to understand the fix in 1.1.1 - is it supposed to have republished the package having been built with babel 7.0.0-rc.1? The package.json still specifies a dependency on 7.0.0-beta.42 and trying to use 1.1.1 still has the same |
@anuraaga v1.1.1 is about locking the babel runtime version to the version that was used to generate the code: beta.42. Make sure the issue isn't coming from another dependency. |
But the dependency that causes the problem is |
@anuraaga Unless you are flattening your node_modules, multiple versions of babel will be installed, it shouldn't be an issue at all. |
@anuraaga, I confirm this issue @oliviertassinari, had installed both core 1.5.1 and icons 1.1.1 and the issue still occur |
I confirm this fix by @oliviertassinari isn't effective. Using core v1.5.1 with icons v1.1.1 still fails with a Babel error |
To avoid conflict with material-ui icons, see mui/material-ui#12621
To avoid conflict with material-ui icons, see mui/material-ui#12621
Building breaks for users of @material-ui/icons 1.1.0 with error
@material-ui/icons 1.1.0 declares that it works with any core of v1
but that's not true for 1.5.1.
1.5.1 depends on @babel/runtime 7.0.0-rc.1 as opposed to 7.0.0-beta.42 in 1.5.0. 7.0.0-rc.1 changes the location of interopRequireDefault.
Expected Behavior
icons v1 can be used
Current Behavior
Steps to Reproduce
https://codesandbox.io/s/oow4nvrm36
Proposal
Release icons 1.1.1 that would work with core 1.5.1 and babel core 7.0.0-rc.1
The text was updated successfully, but these errors were encountered: