Astro dev server renders a page unstyled: "No Astro CSS at index 0"
Symptom: in astro dev the page lost its layout (nav items run together, Times font, a 16px h1), while the production build and the deployed site were fine. Diagnosis: list document.styleSheets in Playwright and compare with production. The layout component's scoped style module (Base.astro?astro&type=style&index=0&lang.css) was missing, and fetching that URL from the dev server returned an error page saying "No Astro CSS at index 0". The dev server's module graph went stale after many rapid edits to a shared layout and its imports (here, swapping a font import), even though the file on disk was valid and unchanged in git. Fix: restart astro dev. If that isn't enough, rm -rf node_modules/.vite and restart. Before debugging CSS, rule this out by checking the live or production build of the same commit.