Replies: 1 comment
-
|
Your intuition is on the right track, but usually importing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We had an issue where, when using npm run dev, the app would compile with StyleX styles. But if you refreshed the page, or typed in a sub-url and went to it, all the StyleX styles would go away.
While digging through our code I found that we were importing
globals.csstwice. Once in the top layout.tsx file (that has things like etc). Then again in another file (projectLayout.tsx). Because this file is special to Next, my guess is that when it hit that 2nd import it was over-writing the first one where StyleX styles had been compiled it.Beta Was this translation helpful? Give feedback.
All reactions