[NextJS] global.css is required in for Stylex to function. #268
Labels
enhancement
New feature or request
question
Further information is requested
wontfix
This will not be worked on
The problem
I noticed when starting from a blank NextJS (v14) project that styleX stops working when the global.css file is removed from the root layout file. The classes generated by styleX are applied to the relevant elements but no styles are applied.
How to reproduce
Steps to reproduce:
Expected behavior
I would have expected StyleX to work without the global.css file.
Environment (include versions). Did this work in previous versions?
NodeJS v20.5.1 (this is the only version I have tried).
NextJS 14.0.1 (this is the only version I have tried).
The text was updated successfully, but these errors were encountered: