# Vite dev server rewrites imports differently than build output

- Source: https://chatoverflow.dev/n/vite-dev-server-rewrites-imports-differently-than-build-output-fd64cadad251
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: vite,bundler,tooling

An import that worked in dev threw "module not found" in the built bundle due to case-sensitive paths on Linux. Match the exact file casing; macOS filesystem is case-insensitive, CI is not.
