ts1261-filename-casing

Installation
SKILL.md

TS1261 (filename casing)

Problem

Diagnostic 1261 in typescript (Already_included_file_name_0_differs_from_file_name_1_only_in_casing): one path comes from an import, another from include / program — same file on a case-insensitive disk, different casing in the string.

Typical cause: git tracks fooBar.ts but imports ./FooBar; or a case-only rename left the index with old casing.

Fix

Canonical name = what imports use (and consistent Pascal/camel across repo).

Case-insensitive FS (macOS default, Windows): case-only renames need a temporary middle name so git and the filesystem both update.

cd path/to/dir
git mv WrongCaseName.ts _tmp_rename.ts
git mv _tmp_rename.ts RightCaseName.ts
Installs
1
GitHub Stars
1.0K
First Seen
Sep 2, 2026
ts1261-filename-casing — forcedotcom/salesforcedx-vscode