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

Styles not applyng on project build #88

Open
sergiobogaro-TTMSTech opened this issue Nov 1, 2024 · 1 comment
Open

Styles not applyng on project build #88

sergiobogaro-TTMSTech opened this issue Nov 1, 2024 · 1 comment

Comments

@sergiobogaro-TTMSTech
Copy link

Recently we made the migration of our project from a css lib tha was diiscontinued to Stylex and this lib to use it with Vite.
Running the project locally it works without problems, but when building the project the styles are not being applyed.

Vite config

image

Versions
@stylexjs/stylex - 0.7.5
vite-plugin-stylex - 0.10.1
vite - 5.4.7

@kevin-st
Copy link

Recently we made the migration of our project from a css lib tha was diiscontinued to Stylex and this lib to use it with Vite. Running the project locally it works without problems, but when building the project the styles are not being applyed.

Vite config

image

Versions @stylexjs/stylex - 0.7.5 vite-plugin-stylex - 0.10.1 vite - 5.4.7

Had the same issue. Working with:

  • "@stylexjs/stylex": "^0.9.3"
  • "vite": "^5.2.0"
  • "vite-plugin-stylex": "^0.13.0"

Creating a css file as described here fixed my problems.

afbeelding

Took me a while to figure that out 👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants