-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix when real path results in value that differs only in case
Fixes #49470
- Loading branch information
1 parent
4a808aa
commit 97011d6
Showing
4 changed files
with
29 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,27 +33,27 @@ export const Fragment: unique symbol; | |
export const App = () => <div propA={true}></div>; | ||
|
||
//// [/user/username/projects/myproject/tsconfig.json] | ||
{"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/jsx-Runtime/index.d.ts","index.tsx"]} | ||
{"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} | ||
|
||
|
||
/a/lib/tsc.js --w --p . --explainFiles | ||
Output:: | ||
>> Screen clear | ||
[[90m12:00:31 AM[0m] Starting compilation in watch mode... | ||
|
||
[91merror[0m[90m TS1149: [0mFile name '/user/username/projects/myproject/node_modules/react/Jsx-runtime/index.d.ts' differs from already included file name '/user/username/projects/myproject/node_modules/react/jsx-Runtime/index.d.ts' only in casing. | ||
[91merror[0m[90m TS1149: [0mFile name '/user/username/projects/myproject/node_modules/react/jsx-runtime/index.d.ts' differs from already included file name '/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts' only in casing. | ||
The file is in the program because: | ||
Part of 'files' list in tsconfig.json | ||
Imported via "react/jsx-runtime" from file '/user/username/projects/myproject/index.tsx' with packageId 'react/jsx-runtime/[email protected]' to import 'jsx' and 'jsxs' factory functions | ||
|
||
[96mtsconfig.json[0m:[93m1[0m:[93m115[0m | ||
[7m1[0m {"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/jsx-Runtime/index.d.ts","index.tsx"]} | ||
[7m1[0m {"compilerOptions":{"jsx":"react-jsx","jsxImportSource":"react","forceConsistentCasingInFileNames":true},"files":["node_modules/react/Jsx-Runtime/index.d.ts","index.tsx"]} | ||
[7m [0m [96m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m | ||
File is matched by 'files' list specified here. | ||
|
||
../../../../a/lib/lib.d.ts | ||
Default library for target 'es3' | ||
node_modules/react/jsx-Runtime/index.d.ts | ||
node_modules/react/Jsx-Runtime/index.d.ts | ||
Part of 'files' list in tsconfig.json | ||
Imported via "react/jsx-runtime" from file 'index.tsx' with packageId 'react/jsx-runtime/[email protected]' to import 'jsx' and 'jsxs' factory functions | ||
index.tsx | ||
|
@@ -62,12 +62,12 @@ index.tsx | |
|
||
|
||
|
||
Program root files: ["/user/username/projects/myproject/node_modules/react/jsx-Runtime/index.d.ts","/user/username/projects/myproject/index.tsx"] | ||
Program root files: ["/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts","/user/username/projects/myproject/index.tsx"] | ||
Program options: {"jsx":4,"jsxImportSource":"react","forceConsistentCasingInFileNames":true,"watch":true,"project":"/user/username/projects/myproject","explainFiles":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
Program structureReused: Not | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/node_modules/react/jsx-Runtime/index.d.ts | ||
/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts | ||
/user/username/projects/myproject/index.tsx | ||
|
||
No cached semantic diagnostics in the builder:: | ||
|
@@ -81,7 +81,7 @@ WatchedFiles:: | |
/user/username/projects/myproject/tsconfig.json: | ||
{"fileName":"/user/username/projects/myproject/tsconfig.json","pollingInterval":250} | ||
/user/username/projects/myproject/node_modules/react/jsx-runtime/index.d.ts: | ||
{"fileName":"/user/username/projects/myproject/node_modules/react/jsx-Runtime/index.d.ts","pollingInterval":250} | ||
{"fileName":"/user/username/projects/myproject/node_modules/react/Jsx-Runtime/index.d.ts","pollingInterval":250} | ||
/user/username/projects/myproject/index.tsx: | ||
{"fileName":"/user/username/projects/myproject/index.tsx","pollingInterval":250} | ||
/a/lib/lib.d.ts: | ||
|