-
Notifications
You must be signed in to change notification settings - Fork 296
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
Error 'No CSS for file' with vite watch mode #1372
Comments
Seems to be similar to #1351 , but errors instead of not updating the styles. |
I just encountered this issue after trying this library out in an existing project. |
Fixed in |
@askoufis I replied on the wrong issue. This is the issue that is still not fixed with 4.0.8. |
I made a tiny project where the issue can still be reproduced: https://github.com/szszoke/vanilla-vite-watch I also added a patch with my if check that seems to resolve the issue. It can be applied via |
@szszoke Oops. I was so focused on the |
Thanks for the quick reaction! I tried it on Linux and Node 20. If you tested on a different platform then my hunch is that the file watching logic has a slightly different behavior. @JohnnyCrazy, could you test whether you still have the issue? |
It seems fixed on the latest version, styles are correctly updated and written, thanks 👍🏼 |
Describe the bug
Similar to #1302, an error pops up when using the library mode of vite in combination with the
--watch
parameter. While the initial build succeeds, all incremental ones give anNo CSS for file
error.No packages, which modify the tsconfig paths are installed. Pretty barebone setup, just vite + vanilla-extract.
Let me know if you need more info!
Reproduction
https://codesandbox.io/p/devbox/vanilla-bug-hc2k2l
System Info
Used Package Manager
pnpm
Logs
Validations
The text was updated successfully, but these errors were encountered: