You renamed `header.tsx` to `Header.tsx` on macOS. Locally everything builds, but Linux CI fails with `Module not found: Can't resolve './components/Header'`.
IntermediateTroubleshootingConfig, Line Endings, Files and Platform Quirks
Answer
Likely causes → macOS and Windows filesystems are case-insensitive, and Git sets core.ignorecase=true there. Renaming only the case in Finder or the IDE is invisible to Git, so the repo still contains header.tsx.
Diagnose →
git ls-files | grep -i 'components/header'
git config core.ignorecase
Fix → Rename through Git so the index changes:
git mv -f src/components/header.tsx src/components/Header.tsx
git commit -m "Rename header.tsx to Header.tsx"
Prevent → Use git mv for case-only renames, enable case-sensitive import checks in linters/TS (forceConsistentCasingInFileNames), and run CI on Linux.
More on Config, Line Endings, Files and Platform Quirks
`warning: in the working copy of 'app.sh', LF will be replaced by CRLF the next time Git touches it`Beginner`git diff` shows `old mode 100755` / `new mode 100644` for hundreds of files with no content change.BeginnerCloning on Windows fails with `error: unable to create file src/very/deep/.../component.test.ts: Filename too long`.BeginnerCheckout on Windows fails with `error: invalid path 'logs/2024-01-01T10:00:00.log'` (or `'docs/aux.md'`) and `fatal: unable to checkout working tree`.IntermediateClone prints `warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:`IntermediateIn your `~/work` repos commits still use your personal email, even though you configured `includeIf` for work.Intermediate