Skip to content

Angular 19: Standalone by default #78

Description

@TomLBarden

Hi, as best I can tell this component does not declare that is it not standalone. Since Angular 19, components now default to being standalone, so when used in conjunction with a fix to ng-mocks seen here I get the following error:

Unexpected "MockOf_NgxScannerQrcodeComponent" found in the "declarations" array of the
"MockOf_NgxScannerQrcodeModule" NgModule, "MockOf_NgxScannerQrcodeComponent" 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)?

It seems like this project just needs to amend the component to declare standalone: false explicitly. I would produce a PR to do so except this repo doesn't seem to actually contain the source code.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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