Skip to content

ng test breaks when module.id is set #4876

@filipesilva

Description

@filipesilva

ng test will break on apps that have moduleId: module.id in the @Component metadata.

Error: moduleId should be a string in "AppComponent". See https://goo.gl/wIDDiL for more information.
If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.

This is due to ng test using a different setup of AoTplugin that does not strip module.id.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfultype: bug/fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions