Title: `forceConsistentCasingInFileNames` does not always work with `paths` compiler option · Issue #17617 · microsoft/TypeScript · GitHub
Open Graph Title: `forceConsistentCasingInFileNames` does not always work with `paths` compiler option · Issue #17617 · microsoft/TypeScript
X Title: `forceConsistentCasingInFileNames` does not always work with `paths` compiler option · Issue #17617 · microsoft/TypeScript
Description: TypeScript Version: 2.4.2 Code // Base tsconfig at /Users/a_user/a_repo/core.json { "compilerOptions": { "forceConsistentCasingInFileNames": true, "baseUrl": "", "paths": { "*": [ "*", "src/*" ] } } } // tsconfig at /Users/a_user/a_repo/...
Open Graph Description: TypeScript Version: 2.4.2 Code // Base tsconfig at /Users/a_user/a_repo/core.json { "compilerOptions": { "forceConsistentCasingInFileNames": true, "baseUrl": "", "paths": { "*": [ "*", "src/*" ] } ...
X Description: TypeScript Version: 2.4.2 Code // Base tsconfig at /Users/a_user/a_repo/core.json { "compilerOptions": { "forceConsistentCasingInFileNames": true, "baseUrl": "&qu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/17617
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`forceConsistentCasingInFileNames` does not always work with `paths` compiler option","articleBody":"**TypeScript Version:** 2.4.2\r\n\r\n**Code**\r\n\r\n```ts\r\n// Base tsconfig at /Users/a_user/a_repo/core.json\r\n{\r\n \"compilerOptions\": {\r\n \"forceConsistentCasingInFileNames\": true,\r\n \"baseUrl\": \"\",\r\n \"paths\": {\r\n \"*\": [ \"*\", \"src/*\" ]\r\n }\r\n }\r\n}\r\n\r\n// tsconfig at /Users/a_user/a_repo/tsconfig.json\r\n{\r\n \"extends\": \"./core\"\r\n}\r\n\r\n// Source file in /Users/a_user/a_repo/src/foo.ts\r\nconst v = 1;\r\nexport default v;\r\n\r\n// Source file in /Users/a_user/a_repo/src/bar.ts\r\nimport v from \"foo\";\r\n\r\n```\r\n\r\n**Expected behavior:**\r\nNo compiler errors/warnings\r\n\r\n**Actual behavior:**\r\n```\r\nerror TS1149: File name '/Users/a_user/a_repo/src/foo.ts' differs from already included file name '/users/a_user/a_repo/src/foo.ts' only in casing.\r\n```\r\n---\r\n\r\nThis is running on OS X 10.9.5 (default case-insensitive HFS file system).\r\n\r\nI am only able to reproduce the issue when using configuration inheritance. Using an absolute path with the expected casing for `baseUrl` resolves the issue.\r\n\r\nThis issue is filed off of these remarks: https://github.com/Microsoft/TypeScript/issues/17542#issuecomment-319296988","author":{"url":"https://github.com/stephenbrady","@type":"Person","name":"stephenbrady"},"datePublished":"2017-08-04T18:44:43Z","url":"https://github.com/microsoft/TypeScript/issues/17617"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3fff366e-2e21-90b6-80a4-1a3bb8e8ab67 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3E6:3A73AA:C22B6:F506D:6B00F694 |
| html-safe-nonce | 55a2e49bc59b1b1c1181aa38b772c52454d3bf63cad427840d148da53c5fca44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0U2OjNBNzNBQTpDMjJCNjpGNTA2RDo2QjAwRjY5NCIsInZpc2l0b3JfaWQiOiI3ODkxMjA0NzE2ODA0MjQxMDQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1f4fd39331cc9662de272815364a2ed334d25438495f2ac55e92c30f487499f |
| hovercard-subject-tag | issue:248086531 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/17617/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75905d8b9f44e867741f895d3d90501344a0ec3a0d9af00153807d91258acafe/microsoft/TypeScript/issues/17617 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75905d8b9f44e867741f895d3d90501344a0ec3a0d9af00153807d91258acafe/microsoft/TypeScript/issues/17617 |
| og:image:alt | TypeScript Version: 2.4.2 Code // Base tsconfig at /Users/a_user/a_repo/core.json { "compilerOptions": { "forceConsistentCasingInFileNames": true, "baseUrl": "", "paths": { "*": [ "*", "src/*" ] } ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | stephenbrady |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width