René's URL Explorer Experiment


Title: Circular project references cause tsc --noEmit to silently skip type errors and exit successfully · Issue #65358 · microsoft/TypeScript · GitHub

Open Graph Title: Circular project references cause tsc --noEmit to silently skip type errors and exit successfully · Issue #65358 · microsoft/TypeScript

X Title: Circular project references cause tsc --noEmit to silently skip type errors and exit successfully · Issue #65358 · microsoft/TypeScript

Description: 🔎 Search Terms circular project references self-referencing tsconfig missing semantic diagnostics project references skip type checking typescript circular references TypeScript 7 regression 🕗 Version & Regression Information Reproduces ...

Open Graph Description: 🔎 Search Terms circular project references self-referencing tsconfig missing semantic diagnostics project references skip type checking typescript circular references TypeScript 7 regression 🕗 Vers...

X Description: 🔎 Search Terms circular project references self-referencing tsconfig missing semantic diagnostics project references skip type checking typescript circular references TypeScript 7 regression 🕗 Vers...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/65358

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Circular project references cause tsc --noEmit to silently skip type errors and exit successfully","articleBody":"### 🔎 Search Terms\n\ncircular project references\nself-referencing tsconfig\nmissing semantic diagnostics\nproject references skip type checking\ntypescript circular references\nTypeScript 7 regression\n\n### 🕗 Version & Regression Information\n\nReproduces in TypeScript **7.0.2**.\n\nThis is a regression compared with **6.0.3**, which reports project errors and exits unsuccessfully for the same reproduction. I have not bisected the exact version where this changed.\n\n| Reproduction | TypeScript 6.0.3 | TypeScript 7.0.2 |\n|---|---|---|\n| Self-reference | TS6305 and TS6377; exit 1 | No diagnostics; exit 0 |\n| Two projects referencing each other | TS6305; exit 2 | No diagnostics; exit 0 |\n\nTypeScript 6.0.3 does not report the assignment error while the cycle is present either, but it does report errors rather than silently succeeding.\n\n### ⏯ Playground Link\n\nhttps://github.com/camc314/typescript-circular-references-repro\n\n### 💻 Code\n\n`index.ts`:\n\n```ts\nexport const value: number = \"error\";\n```\n\n`tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": { \"composite\": true },\n  \"references\": [{ \"path\": \".\" }]\n}\n```\n\nRun:\n\n```sh\nnpx --yes --package=typescript@7.0.2 tsc --project tsconfig.json --noEmit --pretty false\n```\n\n### 🙁 Actual behavior\n\nTypeScript 7.0.2 produces no diagnostics and exits with code **0**, despite the invalid assignment and circular reference.\n\nRemoving the `references` property and repeating the command produces the expected error and exits with code **1**:\n\n```text\nindex.ts(1,14): error TS2322: Type 'string' is not assignable to type 'number'.\n```\n\nFor comparison, running the original self-referencing project with TypeScript 6.0.3:\n\n```sh\nnpx --yes --package=typescript@6.0.3 tsc --project tsconfig.json --noEmit --pretty false\n```\n\nreports **TS6305** (declaration output has not been built) and **TS6377** (conflicting `.tsbuildinfo` output), and exits with code **1**.\n\nBuild mode correctly detects the cycle in both versions:\n\n```sh\nnpx --yes --package=typescript@7.0.2 tsc --build . --dry --pretty false\n```\n\nThis reports **TS6202** and exits with code **4**.\n\nThe same silent success in TypeScript 7.0.2 also occurs with two projects referencing each other; the self-reference above is the smaller reproduction.\n\n### 🙂 Expected behavior\n\nAlthough the reference graph is invalid, project mode should report the cycle or preserve the applicable source diagnostics, rather than silently returning success.\n\n### Additional information about the issue\n\n**Possible cause**\n\nThe [project reference mapper](https://github.com/microsoft/typescript-go/blob/2bd066d87f5bafd315be9f40889d0a60b9e58e0b/internal/compiler/projectreferenceparser.go#L95) excludes the root configuration using parsed-object identity. Resolving a cycle can reparse the same configuration into a different object, allowing the root project’s own files into the reference mappings.\n","author":{"url":"https://github.com/camc314","@type":"Person","name":"camc314"},"datePublished":"2026-11-06T14:44:24Z","url":"https://github.com/microsoft/TypeScript/issues/65358"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:325d92e5-b799-92df-ec53-acc4b2c11f19
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBBDE:128099:A462C9:DB7494:6B063EE2
html-safe-nonce88e2d40839d7e3cc57032b2e8531e0e3c7547c80fa5de872d0924fe301f88d36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkRFOjEyODA5OTpBNDYyQzk6REI3NDk0OjZCMDYzRUUyIiwidmlzaXRvcl9pZCI6IjM0MzMyNDI5MDk0MTAyMTM2MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacaa3145e5e84bf43df066442685f90b8a7c1ea6415a8914256bcfa52b5e8459f0
hovercard-subject-tagissue:6244741515
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/65358/issue_layout
twitter:imagehttps://opengraph.githubassets.com/39d20b01b3afeaca4df2149dfbcdaccdff77b4f7cd39276957a744a991ef8b20/microsoft/TypeScript/issues/65358
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/39d20b01b3afeaca4df2149dfbcdaccdff77b4f7cd39276957a744a991ef8b20/microsoft/TypeScript/issues/65358
og:image:alt🔎 Search Terms circular project references self-referencing tsconfig missing semantic diagnostics project references skip type checking typescript circular references TypeScript 7 regression 🕗 Vers...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecamc314
hostnamegithub.com
expected-hostnamegithub.com
Nonedcf72c457c022486d23c3cbb0dd21aba537a87611ca9ddabd1799cf2eaa9b297
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f38f5735226749ec5e08a8649dce4cb2613d9ad
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/65358#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F65358
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F65358
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/65358
Reloadhttps://github.com/microsoft/TypeScript/issues/65358
Reloadhttps://github.com/microsoft/TypeScript/issues/65358
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests313 (313)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65358
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65358
#65633https://github.com/microsoft/TypeScript/pull/65633
Circular project references cause tsc --noEmit to silently skip type errors and exit successfullyhttps://github.com/microsoft/TypeScript/issues/65358#top
#65633https://github.com/microsoft/TypeScript/pull/65633
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: tsc -bhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20tsc%20-b%22
Backloghttps://github.com/microsoft/TypeScript/milestone/29
https://github.com/camc314
Cameron (camc314)https://github.com/camc314
on Nov 6, 2026https://github.com/microsoft/TypeScript/issues/65358#issue-6244741515
https://github.com/camc314/typescript-circular-references-reprohttps://github.com/camc314/typescript-circular-references-repro
project reference mapperhttps://github.com/microsoft/typescript-go/blob/2bd066d87f5bafd315be9f40889d0a60b9e58e0b/internal/compiler/projectreferenceparser.go#L95
graphite-apphttps://github.com/apps/graphite-app
on Nov 6, 2026https://github.com/microsoft/TypeScript/issues/65358#event-35370627213
test(oxlint): cover typechecking program and project combinations (#2…https://github.com/oxc-project/oxc/commit/582b5756db9fe92b6e205c4a49acf3640fe1f9e2
#2…https://github.com/oxc-project/oxc/pull/28912
582b575https://github.com/oxc-project/oxc/commit/582b5756db9fe92b6e205c4a49acf3640fe1f9e2
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: tsc -bhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20tsc%20-b%22
on Nov 17, 2026https://github.com/microsoft/TypeScript/issues/65358#event-36427504094
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Backloghttps://github.com/microsoft/TypeScript/milestone/29
on Nov 17, 2026https://github.com/microsoft/TypeScript/issues/65358#event-36427517111
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/65358
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/65358
Bughttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: tsc -bhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20tsc%20-b%22
BacklogNo due datehttps://github.com/microsoft/TypeScript/milestone/29
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.