-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
@material-ui/styles duplication issue #15264
Comments
@timaxxer Do you bundle two different versions of @material-ui/styles? |
In your package.json for core alpha7, you have dependency on styles alpha6. If I use styles alpha 7 in my project, the Theme context provider doesn’t push down the right context to your style alpha 6 dependency. I fix my current problem by using style alpha 6. Ionly pointed the fact that maybe poeple using both core alpha7 and styles alpha 7 will have theme problem |
We are using |
Effectivly, I’ll try to figure the problem, thanks for the quick response |
@timaxxer I was running into this conflict too and not understanding why this was happening
So I ended up removing
Not sure why
We may need to keep them explicit on next releases? |
@JeromeFitz You can run |
Thank you @eps1lon . I tend to always forget removing Did those steps and am back in business with explicitly having |
Another strategy is to remove the yarn.lock and to run a new installation. I use this strategy all the time. It's what I find the simplest without any significant downsides. |
This is a YOLO approach. Don't do this in production unless you actually want to vet ~2k line changes. |
😆. If you have a great test suite, the capability to monitor issues and to quickly revert changes, it should be fine. |
I was careful with the release of 4.0.0-alpha.8. I have increased the dependency to all the packages to alpha.8 |
I'm adding a warning as well as a FAQ about the problem. |
The problem was reported multiple times. The pain is not likely to go away in the future. I would rather address it early. It's a good reminder that bundling everything in a single package is simpler. Entropy combined with Murphy's law will always hit you hard! |
Thank you very much as always @oliviertassinari 💯 |
On v4.0.0-alpha.7 release, dependency for @material-ui/styles was not aligned in package.json
When importing both core and styles v4.0.0-alpha.7 on my project, my ThemeProvider is not taken in consideration.
The text was updated successfully, but these errors were encountered: