Cannot find module vite error in Astro's build process
Problem Context The Cannot find module vite error surfaces during astro dev or astro build when the project’s Vite dependency is missing or incompatible with Astro’s required ESM features. Astro 4.x expects Vite 4.x; using an older Vite (3.x or earlier) triggers the failure because the internal @astrojs/vite package attempts to resolve Vite via Node’s module