Title: Imports without import clause don't report that the specifier can't end with `.ts` · Issue #58725 · microsoft/TypeScript · GitHub
Open Graph Title: Imports without import clause don't report that the specifier can't end with `.ts` · Issue #58725 · microsoft/TypeScript
X Title: Imports without import clause don't report that the specifier can't end with `.ts` · Issue #58725 · microsoft/TypeScript
Description: 🔎 Search Terms import clause ts extension resolution 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/dev/bug-workbench/?module=1#code/PTAEAEDMEsBsFMB2BDAtv...
Open Graph Description: 🔎 Search Terms import clause ts extension resolution 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/dev/bug-workbe...
X Description: 🔎 Search Terms import clause ts extension resolution 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/dev/bug-wo...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58725
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Imports without import clause don't report that the specifier can't end with `.ts`","articleBody":"### 🔎 Search Terms\n\nimport clause ts extension resolution\n\n### 🕗 Version \u0026 Regression Information\n\n- This is the behavior in every version I tried\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/dev/bug-workbench/?module=1#code/PTAEAEDMEsBsFMB2BDAtvAXKZA6ALgM4BQR8AHgA4D2ATnqAMZWIH3KgC8oA5MtySAgwEKdFgBG+YkWipqdHjmC5C-WfPoBvAL6hINKqkXKp-IA\n\n### 💻 Code\n\n```ts\r\n// @filename: a.ts\r\n\r\nexport const a = 'a'\r\n\r\n// @filename: b.ts\r\n\r\nimport './a.ts'\r\nimport {} from './a.ts'\r\n```\r\n\n\n### 🙁 Actual behavior\n\nWe get one error in `b.ts`\n\n### 🙂 Expected behavior\n\nWe should get errors on both imports in `b.ts`\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/Andarist","@type":"Person","name":"Andarist"},"datePublished":"2024-05-31T08:25:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/58725/TypeScript/issues/58725"}
| 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:271a8c90-f23d-c821-95bb-a37111042602 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7CA:FF81B:76FB3B:A29753:6A6185C4 |
| html-safe-nonce | 8fe990bbe6c3266ea344d777e9faa75c5c67ccbed31831b37a2a4a5fd91d421f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0NBOkZGODFCOjc2RkIzQjpBMjk3NTM6NkE2MTg1QzQiLCJ2aXNpdG9yX2lkIjoiODgyOTczMDU2NzkwNDkyMTAyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1275f347d088aa8252290a6b58a386751458dcc200888d1097a71a6fa935913c |
| hovercard-subject-tag | issue:2327249683 |
| 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/58725/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfc76e88c7f600475bdbfe6189609bef0b2b06c14221d920fdea92cc22fe7975/microsoft/TypeScript/issues/58725 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfc76e88c7f600475bdbfe6189609bef0b2b06c14221d920fdea92cc22fe7975/microsoft/TypeScript/issues/58725 |
| og:image:alt | 🔎 Search Terms import clause ts extension resolution 🕗 Version & Regression Information This is the behavior in every version I tried ⏯ Playground Link https://www.typescriptlang.org/dev/bug-workbe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Andarist |
| hostname | github.com |
| expected-hostname | github.com |
| None | c28c2f6607f2aacbd934868d997038895c9780d08babfe918550d73773326f4c |
| 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 | cd05235d52ffb3318513d883a56c87a121015c8b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width