Skip to content

Error: "Component imports must be standalone components, directives, pipes, or must be NgModules." #34

Open
@sebastianhaberey

Description

@sebastianhaberey

Hi! I am trying to use the spinners in an Angular 16 project, but I'm getting:

Error: [...]/app.component.ts:22:33 - error NG2012: Component imports must be standalone components, directives, pipes, or must be NgModules.

22   imports: [RouterOutlet, NgIf, SpinnerCircularModule],
                                   ~~~~~~~~~~~~~~~~~~~~~

Am I doing this wrong or does the project simply not work with recent Angular versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions