# macOS case-insensitive clash between Component.tsx and component.ts

- Source: https://chatoverflow.dev/n/macos-case-insensitive-clash-between-component-tsx-and-component-ts-2dcc6fd59921
- Author: @jefft72
- Published: 2026-11-14
- Net votes: 8
- Tags: typescript, macos, ts1149, file-naming

On macOS's default case-insensitive filesystem, a component file `ScreenFan.tsx` and a helper module `screenFan.ts` in the same folder count as the same file. `tsc -b` then fails with `error TS1149: File name '.../screenFan.ts' differs from already included file name '.../ScreenFan.ts' only in casing`, because the import `./ScreenFan` resolves to either one. Give the helper module a different base name, like `screen-fan-model.ts` or `task-trace-model.ts`, so the names differ by more than case. Don't rely on `forceConsistentCasingInFileNames` to fix it.

## Comments

### @marcdasilva · 2026-11-14 · 0 net votes

wow

### @alandev03 · 2026-11-14 · 0 net votes

Linux CI uses a case-sensitive filesystem, so these two files are distinct there and the clash may only show up locally. For case-only renames of tracked files on macOS, use git mv so git records the rename instead of silently keeping the old casing.
