René's URL Explorer Experiment


Title: 'Circular definition of import alias' error in 5.4.0-Beta · Issue #57357 · microsoft/TypeScript · GitHub

Open Graph Title: 'Circular definition of import alias' error in 5.4.0-Beta · Issue #57357 · microsoft/TypeScript

X Title: 'Circular definition of import alias' error in 5.4.0-Beta · Issue #57357 · microsoft/TypeScript

Description: 🔎 Search Terms circular definition binding inference 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.0-beta (5.4.0-dev.20240110 and 5.4.0-dev.20240111) This changed in PR #56087 ⏯ Playground Link https://ww...

Open Graph Description: 🔎 Search Terms circular definition binding inference 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.0-beta (5.4.0-dev.20240110 and 5.4.0-dev.20240111) This changed i...

X Description: 🔎 Search Terms circular definition binding inference 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.0-beta (5.4.0-dev.20240110 and 5.4.0-dev.20240111) This chang...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'Circular definition of import alias' error in 5.4.0-Beta","articleBody":"### 🔎 Search Terms\r\n\r\ncircular definition binding inference\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This changed between versions 5.3.3 and 5.4.0-beta (5.4.0-dev.20240110 and 5.4.0-dev.20240111)\r\n- This changed in PR #56087\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://www.typescriptlang.org/dev/bug-workbench/?ts=5.4.0-beta#code/PTAEAEDMEsBsFMB2BDAtvAXKAJsgLsgHR4DOAUNKgA4D2ATnqHgJ5XygDeoAIvsqAF9QkOjVSgA5IWBVRAY3gkS9CQG4yIUJVoMmrdhyEixoAETSWbU6tCaAPAFoHoAK6IHcsekSNkibKDwdKJ0oADmNIqgyADuyMxkZPAAHjqMkG5yeNA0iOHweLwEABQAlJxkoFW2YOCkDilsWQ3B9JXVdAUudHmeiCR4dC5ZRcjFhuUk+NAkMFEA2gC66gKJGYhZOb25A0MjfMW4BFij5RztVX0DnKCEd7I0VCSCoAC8OHzq1TWgnXjdeSOyBs31B1XsTlc7k8qG8vn8gVaoQiUVi8Quvy6PQqYKqd0IDyeABoMQIVolNFA4Eg0Jg9GxiORGvRGJZ2AA1ZCwFzsd6GCm1GAIFDoLAPBRKeiMijUFk3MIFUYvYziKTAIFqRLaOVsnHVTnc+AkoyiVUWfSapKpHX6Hh8N56qoARxcfmyLCwBp5K3UZGw8DksGQnWEmWyuVAck6+HgACV4C7FHgAAryRTKOh2eNOgB8xQxVGgbFg0EQdLKbxzoGzJNKWGzvuZuiujHF6foDqj8Bj2Z5A1TNAlGfz3wVhT4ZFKvspQppotAqGQpel2t0XDbktCJpMao3Gc1TcY-sgyBcsFbac308F1JFdJi9AA1kFS3ggieFCvZbpdQBlIIAG5BMIpqSNIi6lpah70uwAD6AAqDrFGyNCQKA-50EBdBTmQQA\r\n\r\n### 💻 Code\r\n\r\n(reduced down from a large project as best I could)\r\n\r\n```ts repro\r\n// @filename: data.ts\r\nimport type { Data } from './processor';\r\n// import type {} from \"./type\"; // \u003c-- un-comment and error goes away\r\n\r\nexport function getData() {\r\n    // @ts-expect-error\r\n    return constructData({}) satisfies [];\r\n}\r\n\r\nfunction constructData(data: Data) {\r\n    const { ...props } = data;\r\n    // return data;             // \u003c-- un-comment and error goes away\r\n    return {\r\n        ...props,\r\n    };\r\n}\r\n\r\n// @filename: type.ts\r\nexport type Value = {}\r\n\r\n// @filename: processor.ts\r\nimport { getData } from './data';\r\n\r\nimport type {\r\n    Value,\r\n} from './type';\r\n\r\nexport type Data = {\r\n    quantity: Value;\r\n};\r\n\r\ndeclare function createRequestProcessor\u003cReq>(\r\n    pipeline: () => Req,\r\n): Req;\r\n\r\nexport const processor = createRequestProcessor(\r\n    getData\r\n);\r\n\r\n// @filename: main.ts\r\nimport { processor } from './processor';\r\nexport default processor;\r\n\r\n// @filename: workerinterface.ts\r\nimport type Server from './main';\r\n\r\nexport type _T = (typeof Server);\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\nErrors about circular types\r\n\r\n> implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\r\n\r\n### 🙂 Expected behavior\r\n\r\nEither no error, or a clearer error message. The types don't appear to be circular.\r\n\r\n### Additional information about the issue\r\n\r\nThe code that is now erroring was already using `// @ts-expect-error` to ignore an error. Fixing that hidden error avoids this issue.\r\n\r\nAdding an unused import (as commented in the same) also fixes the error. So it seems that TypeScript has gotten into an odd state.","author":{"url":"https://github.com/acutmore","@type":"Person","name":"acutmore"},"datePublished":"2024-02-09T21:10:48Z","url":"https://github.com/microsoft/TypeScript/issues/57357"}

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:e5ca97f9-84f7-4cc2-da27-b9867a6e40f1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD3DA:6DC60:26FFAF:30D431:6B00FF31
html-safe-nonce4e709556bd2824a25f8a747dcb9b7d1d215fd0b87f763c6cb93254929113febf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RBOjZEQzYwOjI2RkZBRjozMEQ0MzE6NkIwMEZGMzEiLCJ2aXNpdG9yX2lkIjoiNzY3MDkzNzk5MzMzODc0ODcyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac86d72c8fa7a49f5afb4621fa2e7169a23fcc14d3303efdc99d716815d58f53d8
hovercard-subject-tagissue:2127851499
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/57357/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85d8fe53d474348934565e0406191affa2e760c4fa3b4edda3f24c1f69c39086/microsoft/TypeScript/issues/57357
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85d8fe53d474348934565e0406191affa2e760c4fa3b4edda3f24c1f69c39086/microsoft/TypeScript/issues/57357
og:image:alt🔎 Search Terms circular definition binding inference 🕗 Version & Regression Information This changed between versions 5.3.3 and 5.4.0-beta (5.4.0-dev.20240110 and 5.4.0-dev.20240111) This changed i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameacutmore
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/57357#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F57357
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%2F57357
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/57357
Reloadhttps://github.com/microsoft/TypeScript/issues/57357
Reloadhttps://github.com/microsoft/TypeScript/issues/57357
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)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/57357
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57357
#57849https://github.com/microsoft/TypeScript/pull/57849
'Circular definition of import alias' error in 5.4.0-Betahttps://github.com/microsoft/TypeScript/issues/57357#top
#57849https://github.com/microsoft/TypeScript/pull/57849
https://github.com/weswigham
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
https://github.com/acutmore
Ashley Claymore (acutmore)https://github.com/acutmore
on Feb 9, 2024https://github.com/microsoft/TypeScript/issues/57357#issue-2127851499
Use symbols of type aliases when emitting declarations #56087https://github.com/microsoft/TypeScript/pull/56087
https://www.typescriptlang.org/dev/bug-workbench/?ts=5.4.0-beta#code/PTAEAEDMEsBsFMB2BDAtvAXKAJsgLsgHR4DOAUNKgA4D2ATnqHgJ5XygDeoAIvsqAF9QkOjVSgA5IWBVRAY3gkS9CQG4yIUJVoMmrdhyEixoAETSWbU6tCaAPAFoHoAK6IHcsekSNkibKDwdKJ0oADmNIqgyADuyMxkZPAAHjqMkG5yeNA0iOHweLwEABQAlJxkoFW2YOCkDilsWQ3B9JXVdAUudHmeiCR4dC5ZRcjFhuUk+NAkMFEA2gC66gKJGYhZOb25A0MjfMW4BFij5RztVX0DnKCEd7I0VCSCoAC8OHzq1TWgnXjdeSOyBs31B1XsTlc7k8qG8vn8gVaoQiUVi8Quvy6PQqYKqd0IDyeABoMQIVolNFA4Eg0Jg9GxiORGvRGJZ2AA1ZCwFzsd6GCm1GAIFDoLAPBRKeiMijUFk3MIFUYvYziKTAIFqRLaOVsnHVTnc+AkoyiVUWfSapKpHX6Hh8N56qoARxcfmyLCwBp5K3UZGw8DksGQnWEmWyuVAck6+HgACV4C7FHgAAryRTKOh2eNOgB8xQxVGgbFg0EQdLKbxzoGzJNKWGzvuZuiujHF6foDqj8Bj2Z5A1TNAlGfz3wVhT4ZFKvspQppotAqGQpel2t0XDbktCJpMao3Gc1TcY-sgyBcsFbac308F1JFdJi9AA1kFS3ggieFCvZbpdQBlIIAG5BMIpqSNIi6lpah70uwAD6AAqDrFGyNCQKA-50EBdBTmQQAhttps://www.typescriptlang.org/dev/bug-workbench/?ts=5.4.0-beta#code/PTAEAEDMEsBsFMB2BDAtvAXKAJsgLsgHR4DOAUNKgA4D2ATnqHgJ5XygDeoAIvsqAF9QkOjVSgA5IWBVRAY3gkS9CQG4yIUJVoMmrdhyEixoAETSWbU6tCaAPAFoHoAK6IHcsekSNkibKDwdKJ0oADmNIqgyADuyMxkZPAAHjqMkG5yeNA0iOHweLwEABQAlJxkoFW2YOCkDilsWQ3B9JXVdAUudHmeiCR4dC5ZRcjFhuUk+NAkMFEA2gC66gKJGYhZOb25A0MjfMW4BFij5RztVX0DnKCEd7I0VCSCoAC8OHzq1TWgnXjdeSOyBs31B1XsTlc7k8qG8vn8gVaoQiUVi8Quvy6PQqYKqd0IDyeABoMQIVolNFA4Eg0Jg9GxiORGvRGJZ2AA1ZCwFzsd6GCm1GAIFDoLAPBRKeiMijUFk3MIFUYvYziKTAIFqRLaOVsnHVTnc+AkoyiVUWfSapKpHX6Hh8N56qoARxcfmyLCwBp5K3UZGw8DksGQnWEmWyuVAck6+HgACV4C7FHgAAryRTKOh2eNOgB8xQxVGgbFg0EQdLKbxzoGzJNKWGzvuZuiujHF6foDqj8Bj2Z5A1TNAlGfz3wVhT4ZFKvspQppotAqGQpel2t0XDbktCJpMao3Gc1TcY-sgyBcsFbac308F1JFdJi9AA1kFS3ggieFCvZbpdQBlIIAG5BMIpqSNIi6lpah70uwAD6AAqDrFGyNCQKA-50EBdBTmQQA
https://github.com/RyanCavanaugh
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
on Feb 9, 2024https://github.com/microsoft/TypeScript/issues/57357#issuecomment-1936631251
#56087https://github.com/microsoft/TypeScript/pull/56087
https://github.com/acutmore
Ashley Claymore (acutmore)https://github.com/acutmore
on Feb 9, 2024https://github.com/microsoft/TypeScript/issues/57357#issuecomment-1936638993
#56087https://github.com/microsoft/TypeScript/pull/56087
#56753https://github.com/microsoft/TypeScript/pull/56753
https://github.com/Andarist
Mateusz Burzyński (Andarist)https://github.com/Andarist
on Feb 9, 2024https://github.com/microsoft/TypeScript/issues/57357#issuecomment-1936676019
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Wesley Wigham (weswigham)https://github.com/weswigham
on Feb 12, 2024https://github.com/microsoft/TypeScript/issues/57357#event-11779609920
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
on Feb 12, 2024https://github.com/microsoft/TypeScript/issues/57357#event-11779610358
Ryan Cavanaugh (RyanCavanaugh)https://github.com/RyanCavanaugh
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
on Feb 12, 2024https://github.com/microsoft/TypeScript/issues/57357#event-11779610952
TypeScript Bot (typescript-bot)https://github.com/typescript-bot
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
on Feb 13, 2024https://github.com/microsoft/TypeScript/issues/57357#event-11787708348
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#57849https://github.com/microsoft/TypeScript/pull/57849
on Mar 19, 2024https://github.com/microsoft/TypeScript/issues/57357#event-12175734020
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/57357
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/57357
Wesley Wigham (weswigham)https://github.com/weswigham
Fix AvailableA PR has been opened for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fix%20Available%22
Needs InvestigationThis issue needs a team member to investigate its status.https://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Needs%20Investigation%22
TypeScript 5.5.0https://github.com/microsoft/TypeScript/milestone/179
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

Viewport: width=device-width


URLs of crawlers that visited me.