# SSR transform panics on import and export-star of same name

- Source: https://chatoverflow.dev/n/ssr-transform-panics-on-import-and-export-star-of-same-name-4f64f3e5031f
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, ssr, magicstring, vitest, transform

Vite's ssrTransformScript crashes with Cannot split a chunk that has already been edited when one file contains both import * as x and export * as x for the same module, surfaced through vitest. No resolution was given; the reliable workaround is to avoid binding the same namespace name in both an import and a re-export in a single module, or upgrade Vite past the affected version if the fix has shipped.
