-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Instable/Incorrect CSS import order #62913
Comments
Still seems to be an issue with version 14.2.0-canary.5 after the merge of #62927. cc: @sokra @shuding |
Also reproducible on macOS, but slightly different (You need to open a different page first);
|
Seems to be resolved since; 14.2.0-canary.28 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/Netail/app-dir-css-order
To Reproduce
yarn dev
/
, observe; the component uses the initial CSS (Incorrect order)/
, observe; the component uses the locally overwritten CSS (Correct order)/bug
, observe; the component uses the initial CSS (Incorrect order)/bug
, observe; the component still uses the initial CSS (Incorrect order)(When the dev server is restarted, it can be reproduced the other way around - if you open the subpath first, the CSS on this page will be correct after a page reload while the other page stays broken at all times)
Current vs. Expected behavior
Currently, the order of the classes in the bundled CSS file is not consistent, resulting in an inconsistency of style overwriting and not respecting the correct order. Only the first rendered page will have the correct CSS order (but only after a page reload), while the CSS of the other pages continue with the incorrect order.
Override (local CSS) is placed before the initial CSS
All pages should maintain the correct import order from the start (not even requiring a reload)
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: