Skip to content
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

different order of styles when using codesandbox and my computer #14244

Closed
2 tasks done
OYMiss opened this issue Jan 19, 2019 · 4 comments
Closed
2 tasks done

different order of styles when using codesandbox and my computer #14244

OYMiss opened this issue Jan 19, 2019 · 4 comments
Labels
support: Stack Overflow Please ask the community on Stack Overflow

Comments

@OYMiss
Copy link

OYMiss commented Jan 19, 2019

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

When I use codesandbox here to build my code, the order of styles is right.

Current Behavior 😯

But when I download it and run yarn install && yarn start , the order is wrong.

style was overwritten

Steps to Reproduce 🕹

Link:

  1. download this
  2. yarn install && yarn start

I have checked the import order. Is any wrong in my code or method to run ?

Context 🔦

Your Environment 🌎

Tech Version
React next
SystemOS MacOS 10.14.2
Browser Chrome 71.0
@joshwooding
Copy link
Member

Hi, you need to follow the install guide when using @material-ui/styles with @material-ui/core. I’m not sure why but Codesandbox doesn’t need this step

@joshwooding joshwooding added the support: Stack Overflow Please ask the community on Stack Overflow label Jan 19, 2019
@support
Copy link

support bot commented Jan 19, 2019

👋 Thanks for using Material-UI!

We use the issue tracker exclusively for bug reports and feature requests, however,
this issue appears to be a support request or question. Please ask on StackOverflow where the
community will do their best to help. There is a "material-ui" tag that you can use to tag your
question.

If you would like to link from here to your question on SO, it will help others find it.
If your issues is confirmed as a bug, you are welcome to reopen the issue using the issue template.

@support support bot closed this as completed Jan 19, 2019
@joshwooding
Copy link
Member

@oliviertassinari I think it’s confusing that codesandbox works and is different to what would work normally. Maybe there should be some work to add the install step?

@oliviertassinari
Copy link
Member

oliviertassinari commented Jan 19, 2019

@joshwooding I think that the problem will be solved once we release v4, we can keep the old import paths, just have the @material-ui/core/styles module uses @material-ui/styles internally: #14247.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support: Stack Overflow Please ask the community on Stack Overflow
Projects
None yet
Development

No branches or pull requests

3 participants