Angular 19/20 Monorepo in JetBrains IDE

Discussão em 'Angular' iniciado por Desperado, Agosto 18, 2025.

  1. Desperado

    Desperado Guest

    Starting with Angular 19 I keep getting errors like TS-992010: 'imports' is only valid on a component that is standalone. which I see others have fixed on VS Code by updating angular language service 'imports' is only valid on a component that is standalone or by migrating all projects to the same version The LS does not recognise components as being standalone

    My projects are already on the same version of Angular 20.1.7.

    Any suggestions on how to fix this in JetBrains IDE, specifically Rider 2025.1.5.

    @Component({
    selector: 'app-admin',
    schemas: [CUSTOM_ELEMENTS_SCHEMA],
    imports: [CommonModule, ReactiveFormsModule, RouterModule, SharedModule, FormsModule],
    templateUrl: './admin.component.html',
    styleUrls: ['./admin.component.scss'],
    changeDetection: ChangeDetectionStrategy.OnPush
    })
    export class AdminComponent implements OnInit, AfterViewInit {

    Continue reading...

Compartilhe esta Página