Visitar URL original
Angular language service crashes when same component in declarations and imports · Issue #65040 · angular/angular · GitHub
The Wayback Machine - https://web.archive.org/web/20260224205720/https://github.com/angular/angular/issues/65040
Skip to content

Angular language service crashes when same component in declarations and imports #65040

@Doubi88

Description

@Doubi88

Is this a bug report or a feature request?

  • Bug Report
  • Feature Request

Please provide the steps to reproduce the issue [Bug Report only]

  1. Have a module without standalone components
  2. Create a new component with ng g c component-name (forgetting standalone=false)
  3. remove standalone: true and imports: [] from @Component
  4. Add the component to the declarations of the module, forgetting to delete it from imports

Please provide the expected behavior vs the actual behavior you encountered [Bug Report only]

Expected: I'm not sure what would be best here. Maybe show an error.
Actual: The error message "The Angular Language Service server crashed 5 times in the last 3 minutes. The server will not be restarted." appears

Please provide a screenshot if possible [Bug Report only]

No response

Please provide the exception or error you saw [Bug Report only]

The Angular Language Service server crashed 5 times in the last 3 minutes. The server will not be restarted.

Is this a browser-specific issue? If so, please specify the device, browser, and version. [Bug Report only]


Description [Feature Request only]

No response

Proposed solution [Feature Request only]

No response

Alternatives considered [Feature Request only]

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compilerIssues related to `ngc`, Angular's template compilerarea: language-serviceIssues related to Angular's VS Code language servicearea: vscode-extensionIssues related to the Angular Language Service VsCode extensionhelp wantedAn issue that is suitable for a community contributor (based on its complexity/scope).

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions