-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
HMR: Installing sass when in error state does not reload page #5145
Comments
This is blocked by this Node core bug: nodejs/node#44663 |
I think it would be cool if this works, but I'm not sure if Vite currently works when installing packages on the fly too. Traditionally whenever installing or updating a package, it would be safer to reboot everything. |
Vite would work in this case if not for the Node core bug. Another alternative is to launch Astro as a subprocess and to kill that subprocess on any package.json changes. That would be heavy, however. |
Another solution being discussed is installing sass when it is attempted to be used, see https://discord.com/channels/804011606160703521/1037805603956998304. |
Assigning to @bluwy who's going to update Vite to first check if the package exists before trying to require it. |
Ref Vite PR: vitejs/vite#10812. Still needs to be cherry-picked into the Vite v3 branch and released before we can make the change here. |
The fix is released in Vite 3.2.4 👍 |
What version of
astro
are you using?1.5.2
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
sass
.lang="scss"
to a style attribute.npm install sass
Link to Minimal Reproducible Example
n/a
Participation
The text was updated successfully, but these errors were encountered: