You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
In a sveltekit project, in dev mode with hmr activated, deleting a file and recreating it breaks the project.
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-mqecep?description=The%20default%20SvelteKit%20template,%20generated%20with%20create-svelte&file=src%2Froutes%2Fstyles.css&title=SvelteKit%20Default%20Template
Steps to reproduce
mv MyComponent.svelte MyComponent2.svelte
mv MyComponent2.svelte MyComponent.svelte
System Info
System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11390H @ 3.40GHz Memory: 1.48 GB / 15.36 GB Container: Yes Shell: 5.1.16 - /bin/bash Binaries: Node: 16.20.2 - /usr/bin/node Yarn: 1.22.19 - /usr/bin/yarn npm: 8.19.4 - /usr/bin/npm Browsers: Chrome: 115.0.5790.170 Firefox: 116.0.2 npmPackages: vite: ^4.3.4 => 4.3.4
Used Package Manager
npm
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: