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

/__uno.css file missing when using vite build --watch #244

Closed
wheatjs opened this issue Dec 9, 2021 · 4 comments
Closed

/__uno.css file missing when using vite build --watch #244

wheatjs opened this issue Dec 9, 2021 · 4 comments
Assignees
Labels
bug Something isn't working cli pr welcome

Comments

@wheatjs
Copy link
Collaborator

wheatjs commented Dec 9, 2021

Ran into this issue earlier and haven't had time to look into it yet. Seems like when using vite build --watch with unocss it will give the following error message after saving a file

image

Here is a reproduction on stackblitz. Try changing bg-red-300 to something like bg-red-500 and you will see the error in the terminal. If you get the This feature requires a pro account dialog you can close it and still see the error in the terminal.
https://stackblitz.com/edit/vitejs-vite-cu4dnw?file=src%2Fcomponents%2FHelloWorld.vue&terminal=dev

@wheatjs wheatjs added the bug Something isn't working label Dec 9, 2021
@antfu
Copy link
Member

antfu commented Dec 9, 2021

It does not handles watch mode yet I believe

@antfu
Copy link
Member

antfu commented Dec 9, 2021

If you want to give it a try, here is how we did that in Windi

windicss/vite-plugin-windicss@cc7619f
windicss/vite-plugin-windicss@cc7619f

@Saul-Mirone
Copy link

@clarkf
Copy link
Contributor

clarkf commented Jan 25, 2023

While working on #2108 I was unable to reproduce this. I think this is fixed?

@wheatjs wheatjs closed this as completed Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli pr welcome
Projects
None yet
Development

No branches or pull requests

5 participants