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

In Inertia starter kit, making any changes to the app.css throws "css hmr is not supported" error #31

Open
IcyFoxe opened this issue Jul 22, 2024 · 3 comments
Labels
question Further information is requested

Comments

@IcyFoxe
Copy link

IcyFoxe commented Jul 22, 2024

Package version

1.1.0

Describe the bug

I've been testing out Inertia with Vue, and I've noticed, that making any changes to the inertia\css\app.css file will throw the [vite] css hmr is not supported in runtime mode error in the console, while still reflecting the changes in the browser window. Not sure how to fix this error.

To reproduce:
Initialize Adonis app with Inertia Starter Kit, choose Vue adapter, and set server-side rendering with Inertia to true. Once the dev server is running, any changes you make to the app.css file will trigger the error.

Reproduction repo

No response

@RomainLanz
Copy link
Member

Hey @IcyFoxe! 👋🏻

It doesn't throw an error. It is a warning made by Vite that we cannot control.
It is not important, and you can just ignore it.

@RomainLanz RomainLanz added the question Further information is requested label Jul 23, 2024
@IcyFoxe
Copy link
Author

IcyFoxe commented Jul 23, 2024

I see. Is there a way to hide this warning? Because it's cluttering the console a lot, especially since sometimes it writes the same message 3+ times in a row after a single save.

@IcyFoxe
Copy link
Author

IcyFoxe commented Aug 11, 2024

I've noticed, that it doesn't happen if I don't touch the refresh button of the page. It works fine without any warnings. However after refreshing the page, it starts appearing.

It seems that HMR watcher gets duplicated after page refresh, and they probably start conflicting with eachother. Even the warning message appears as many times (+1), as the page was refreshed further proving this conclusion.

After 1 refresh:
image

After 3 refreshes:
image

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

No branches or pull requests

2 participants