Skip to content

Angular 19: Standalone defaults to true #319

Open
@GipHub123

Description

@GipHub123

Current version is not compatible with Angular 19 since components are currently missing standalone -flag.

@Component({
standalone: false
})

It's causing that test cases are failing with following error

Error: Unexpected "MockOfNgxFileDropComponent" found in the "declarations" array of the "MockOfNgxFileDropModule" NgModule, "MockOfNgxFileDropComponent" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?
      Unexpected "MockOfNgxFileDropContentTemplateDirective" found in the "declarations" array of the "MockOfNgxFileDropModule" NgModule, "MockOfNgxFileDropContentTemplateDirective" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?

Versions:

ng-mocks: 14.13.2,
angular: 19.1.2
ngx-file-drop: 16.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions