Closed
Description
TypeScript Version: 2.4.0
On case-insensitive systems, projects with forceConsistentCasingInFileNames
enabled – which are located at a path which contains capital letters – issue an unexpected compiler error:
error TS1149: File name '[...]/capitalization-in-path/src/index.ts' differs from already included file name '[...]/CAPITALIZATION-IN-PATH/src/index.ts' only in casing.
Similar to #9934, #10095, and #10474, but seems to be a slightly different issue.
Example repo
https://github.com/bitjson/typescript-bug
Specifically, this is only happening when tsc
is passed a tsconfig.json
that extends another tsconfig.json
. In the example repo, note that there is no difference in configuration:
tsc -p tsconfig.json" # working
tsc -p config/tsconfig.json # error
where config/tsconfig.json
contains only:
{
"extends": "../tsconfig"
}