[5.0 Beta] Vite HMR causes dev server restarts at every change
OverflowCat opened this issue · 6 comments
OverflowCat commented
Astro Info
5.0.0 beta.10 and 5.0.0 beta.12
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
HMR breaks after simply bump Astro beta versions.
Don't know what is the root cause; I'll try to write a MPE later.
What's the expected result?
HMR works successfully.
Link to Minimal Reproducible Example
n/a
Participation
- I am willing to submit a pull request for this issue.
arch-fan commented
Same issue running right now, but not in V5, it's happening in V4
This are the deps:
"dependencies": {
"@astrojs/db": "0.14.3",
"@astrojs/react": "^3.6.3",
"@astrojs/tailwind": "5.1.2",
"@astrojs/vercel": "^7.8.2",
"@fontsource-variable/inter": "5.0.18",
"@iconify-json/mdi": "1.2.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"astro": "4.16.16",
"cloudinary": "^2.2.0",
"easymde": "^2.18.0",
"google-auth-library": "^9.10.0",
"jsonwebtoken": "^9.0.2",
"lucide-react": "^0.460.0",
"path-to-regexp": "^8.2.0",
"react": "19.0.0-rc.1",
"react-dom": "19.0.0-rc.1",
"react-router": "^7.0.1",
"react-toastify": "^10.0.6",
"remarkable": "^2.0.1",
"sharp": "^0.33.4",
"slugify": "^1.6.6",
"svelte": "5.2.7",
"twitter-api-v2": "^1.17.0"
},
"devDependencies": {
"@astrojs/check": "0.9.4",
"@astrojs/sitemap": "^3.2.1",
"@astrojs/svelte": "6.0.2",
"@biomejs/biome": "1.7.3",
"@tailwindcss/typography": "0.5.13",
"@types/jsonwebtoken": "^9.0.6",
"@types/remarkable": "^2.0.8",
"astro-icon": "1.1.4",
"tailwindcss": "3.4.3",
"typescript": "5.4.5"
}
github-actions commented
Hello @OverflowCat. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro
will be closed if they have no activity within 3 days.