Open cogell opened 2 months ago
If you have a vanilla nextjs app setup WITHOUT import './anything.css' then the stylex CSS will not be created (tho the className strings will).
import './anything.css'
As soon as you make a blank anything.css file and import it in app/layout.tsx the stylex CSS will start working.
anything.css
app/layout.tsx
Ideally, stylex would work without the need to have a .css file imported somewhere in your app.
.css
reproduction https://stackblitz.com/edit/stylex-next-poaqpu?file=app%2Flayout.tsx forked from the StyleX + Next stackblitz that is linked on https://stylexjs.com/playground/
StyleX + Next
No response
This is expected. We're working to update the docs to make this clear.
Describe the issue
If you have a vanilla nextjs app setup WITHOUT
import './anything.css'
then the stylex CSS will not be created (tho the className strings will).As soon as you make a blank
anything.css
file and import it inapp/layout.tsx
the stylex CSS will start working.Expected behavior
Ideally, stylex would work without the need to have a
.css
file imported somewhere in your app.Steps to reproduce
reproduction https://stackblitz.com/edit/stylex-next-poaqpu?file=app%2Flayout.tsx forked from the
StyleX + Next
stackblitz that is linked on https://stylexjs.com/playground/Test case
No response
Additional comments
No response