Title: 7.1 regression: TS2339 in a self-referencing object literal is dropped when another file on the same checker hits the same error first · Issue #65483 · microsoft/TypeScript · GitHub
Open Graph Title: 7.1 regression: TS2339 in a self-referencing object literal is dropped when another file on the same checker hits the same error first · Issue #65483 · microsoft/TypeScript
X Title: 7.1 regression: TS2339 in a self-referencing object literal is dropped when another file on the same checker hits the same error first · Issue #65483 · microsoft/TypeScript
Description: 🔎 Search Terms TS2339 missing, error not reported, deferred diagnostics, produceDeferredDiagnostics, addDeferredDiagnostic, singleThreaded, checkers, ts-expect-error, self-referencing object literal, typescript-go#4640 🕗 Version & Regres...
Open Graph Description: 🔎 Search Terms TS2339 missing, error not reported, deferred diagnostics, produceDeferredDiagnostics, addDeferredDiagnostic, singleThreaded, checkers, ts-expect-error, self-referencing object litera...
X Description: 🔎 Search Terms TS2339 missing, error not reported, deferred diagnostics, produceDeferredDiagnostics, addDeferredDiagnostic, singleThreaded, checkers, ts-expect-error, self-referencing object litera...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/65483
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"7.1 regression: TS2339 in a self-referencing object literal is dropped when another file on the same checker hits the same error first","articleBody":"### 🔎 Search Terms\n\nTS2339 missing, error not reported, deferred diagnostics, produceDeferredDiagnostics, addDeferredDiagnostic, singleThreaded, checkers, ts-expect-error, self-referencing object literal, typescript-go#4640\n\n### 🕗 Version & Regression Information\n\n- This changed between versions `7.1.0-dev.20260715.1` and `7.1.0-dev.20260717.1`\n- This changed in commit or PR: probably microsoft/typescript-go#4640 (\"Always accumulate deferred diagnostics\"). I bisected to that nightly range, not to the commit. Of the 12 commits in the range (448614f8f4...b8276f35cd), #4640 is the one that changes how diagnostics are reported, and it moves this TS2339 into a deferred callback.\n- Still present in `7.1.0-beta` and `7.1.0-dev.20261113.1`. `5.9.3`, `6.0.3`, `7.0.2` and `7.1.0-dev.20260715.1` report the error.\n\n### ⏯ Playground Link\n\nNone. The repro needs two files and `--singleThreaded`.\n\n### 💻 Code\n\n`a.ts`\n```ts\nimport type { T } from \"./b\";\n\nexport const Obj = {\n Updaters: {\n Template: {\n commitError: (v: T) => Obj.Updaters.Core.commitError(v),\n },\n },\n};\n```\n\n`b.ts`\n```ts\nimport { Obj } from \"./a\";\n\nexport type T = number;\nexport const x = Obj.Updaters.Core.simpleModal;\n```\n\n`tsconfig.json`\n```json\n{ \"compilerOptions\": { \"strict\": true, \"noEmit\": true, \"target\": \"esnext\", \"module\": \"esnext\", \"moduleResolution\": \"bundler\", \"skipLibCheck\": true, \"lib\": [\"esnext\"] }, \"files\": [\"a.ts\", \"b.ts\"] }\n```\n\nRun `tsc -p . --singleThreaded`.\n\n### 🙁 Actual behavior\n\n`7.1.0-dev.20261113.1` reports only the error in `b.ts`:\n\n```\nb.ts(4,31): error TS2339: Property 'Core' does not exist on type '{ Template: { commitError: (v: number) => any; }; }'.\n```\n\nThe same access in `a.ts` (line 6) is not reported.\n\nIt gets worse when the access in `b.ts` is suppressed. Put `// @ts-expect-error` on the line above `export const x` in `b.ts`, and `tsc -p . --singleThreaded` prints nothing and exits 0, though `a.ts` still has an invalid property access.\n\nWithout `--singleThreaded`, both errors are reported in this two-file program, presumably because the two files land on different checkers. We first hit this in a 40'000-file project with the default checker count, where a state object and the file that imports it ended up on the same checker. We then confirmed the missing error there with `typescript@7.1.0-beta --singleThreaded`.\n\n\n### 🙂 Expected behavior\n\nBoth errors, as in `7.0.2`:\n\n```\na.ts(6,43): error TS2339: Property 'Core' does not exist on type '{ Template: { commitError: (v: number) => any; }; }'.\nb.ts(4,31): error TS2339: Property 'Core' does not exist on type '{ Template: { commitError: (v: number) => any; }; }'.\n```\n\nWith the `@ts-expect-error` in `b.ts`, the `a.ts` error and a non-zero exit code. The result should not depend on which checker a file is assigned to.\n\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/meehow-m","@type":"Person","name":"meehow-m"},"datePublished":"2026-11-13T09:48:34Z","url":"https://github.com/microsoft/TypeScript/issues/65483"}
| 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:e1b3ad21-d7e9-2b1e-354d-486c9263e611 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96F4:1D86C4:AF9482:E03650:6B00F6CC |
| html-safe-nonce | 9523cc33d2c118cc2d8b46ed5bec927b775fd6957fecd1843a32af950f2e83ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkY0OjFEODZDNDpBRjk0ODI6RTAzNjUwOjZCMDBGNkNDIiwidmlzaXRvcl9pZCI6IjIzNzU3NTI2ODc2MDcxNTAyODQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1492e769a9da51f3d566addd61643011d09d2dab507a75f392ede9dc1f3c4c57 |
| hovercard-subject-tag | issue:6368914158 |
| 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/65483/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a87bb32691c3a0fe031226f76a7ec1200006536cd97ed3bb65c523520b8c13e/microsoft/TypeScript/issues/65483 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a87bb32691c3a0fe031226f76a7ec1200006536cd97ed3bb65c523520b8c13e/microsoft/TypeScript/issues/65483 |
| og:image:alt | 🔎 Search Terms TS2339 missing, error not reported, deferred diagnostics, produceDeferredDiagnostics, addDeferredDiagnostic, singleThreaded, checkers, ts-expect-error, self-referencing object litera... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | meehow-m |
| 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