Skip to content

issue in domain generator when creating an associated application #134

@FabienDehopre

Description

@FabienDehopre

In the latest nx workspace, when you try to create a domain with an associated application (--addApp=true), the generator fail with the following error message: "Cannot read properties of undefined (reading 'replace')".
In fact, the issue comes from the fact that the generator tries to get the workspace npm scope from the nx.json file (using the readWorkspaceConfiguration function).
Unfortunately, the npmScope property on the nx.json file is now deprecated (see official doc: https://nx.dev/packages/devkit/documents/Workspace#npmscope) and is not added to the nx.json file in new workspace.
To get the workspace npm scope, you need to use the getNpmScope function instead.

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