Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Component not found in NgModule #458

@fbcarpinato

Description

@fbcarpinato

Describe the bug
In every component of my project, I get the error that tells me that I didn't import the component inside the NgModule, but in reality, it compiles and works.

A clear and concise description of what the bug is.
The language service don't recognize the component as registered in a NgModule.

To Reproduce
Update to 0.900

Steps to reproduce the behaviour:

  1. Go to a component class and hover the @component decorator

Expected behaviour

A clear and concise description of what you expected to happen.
It should just recognize that my component is registered in a NgModule.

Logs

  1. Console output
    {
    "resource": "/Users/fabiocarpinato/Workspace/user-client-v2/src/app/features/commons/invoices-container/invoices-container-page/invoices-container-page.component.ts",
    "owner": "generated_diagnostic_collection_name#0",
    "code": "0",
    "severity": 8,
    "message": "Component 'InvoicesContainerPageComponent' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration.",
    "source": "ng",
    "startLineNumber": 11,
    "startColumn": 2,
    "endLineNumber": 11,
    "endColumn": 11
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions