Back to all fixes
CuratedTypeScriptVite 8local

Vite 8.0.13 dev regression: React.lazy + resolve.alias breaks with experimental.bundledDev

Problem

With `experimental.bundledDev: true` and a `resolve.alias` configured, dynamically imported (React.lazy) components fail to load correctly in dev mode - a regression that appeared specifically in Vite 8.0.13. Maintainer traced it to `resolve.alias` conflicting with the bundled-dev lazy-compilation implementation: the alias resolution and the lazy-chunk-loading mechanism stepped on each other.

Solution

typescript
Fixed in Vite 8.0.14, confirmed by maintainer sapphi-red directly on this issue. Upgrade to vite@8.0.14 or later. Note: at least one other reporter (MariusVatasoiu) found their similar-looking symptom persisted after upgrading to 8.0.14 in a non-React project, indicating a distinct edge case was filed separately - if upgrading to 8.0.14+ doesn't resolve your case, check for a follow-up issue rather than assuming this exact fix covers it.