Title: Auto import default exported component will break the imports · Issue #48689 · angular/angular · GitHub
Open Graph Title: Auto import default exported component will break the imports · Issue #48689 · angular/angular
X Title: Auto import default exported component will break the imports · Issue #48689 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? language-service Is this a regression? No Description When I try to auto import a component that is exported as default : export default class TestComponent {} the vscode plugin will...
Open Graph Description: Which @angular/* package(s) are the source of the bug? language-service Is this a regression? No Description When I try to auto import a component that is exported as default : export default class...
X Description: Which @angular/* package(s) are the source of the bug? language-service Is this a regression? No Description When I try to auto import a component that is exported as default : export default class...
Opengraph URL: https://github.com/angular/angular/issues/48689
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Auto import default exported component will break the imports","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nlanguage-service\n\n### Is this a regression?\n\nNo\n\n### Description\n\nWhen I try to auto import a component that is exported as default : \r\n\r\n```ts\r\nexport default class TestComponent {}\r\n```\r\n\r\nthe vscode plugin will import it as: \r\n\r\n```ts\r\nimport { default } from \"./test.component\";\r\n\r\n@Component({\r\n template: `\r\n \u003capp-test />\r\n `,\r\n standalone: true,\r\n imports: [default]\r\n})\r\nexport class AppComponent {}\r\n```\r\n\r\nThis will make the build fail. \r\n\r\n\u003cimg width=\"1030\" alt=\"build error\" src=\"https://user-images.githubusercontent.com/25394362/211648172-f1596455-5727-4cce-b77f-e5f516f1bd0b.png\">\r\n\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n_No response_\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/eneajaho","@type":"Person","name":"eneajaho"},"datePublished":"2023-01-10T19:51:00Z","url":"https://github.com/angular/angular/issues/48689"}
| 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:e7ce06fa-26b9-d05c-967e-8de8f338fd5b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E392:29FFA9:7933B6:9B2388:6B00E4DA |
| html-safe-nonce | f228b57743542c0e79f1f918ec4e7cff1f2a8bb58f753b886b8d173699c93ca8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzkyOjI5RkZBOTo3OTMzQjY6OUIyMzg4OjZCMDBFNERBIiwidmlzaXRvcl9pZCI6IjczNTIyOTM1MTQ5NTAwMTAwNzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c1f27a5a21c1b7659fd746f502f418ff22c428dadd3b2fc736c992d2b7f67380 |
| hovercard-subject-tag | issue:1527922404 |
| 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/angular/angular/48689/issue_layout |
| twitter:image | https://opengraph.githubassets.com/009604a2531a49dd759cfc3d10e8d7137b10d9816f17b23b09c3e0a6a6778fae/angular/angular/issues/48689 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/009604a2531a49dd759cfc3d10e8d7137b10d9816f17b23b09c3e0a6a6778fae/angular/angular/issues/48689 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? language-service Is this a regression? No Description When I try to auto import a component that is exported as default : export default class... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eneajaho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width