-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue in domain generator when creating an associated application #134
Comments
Thank you for the report @FabienDehopre, I've encountered a similar problem which is also due to the reading of the npmScope. I'll inform @manfredsteyer. |
@L-X-T :I have the same issue with or without project addition during execution. I'm using pnpm. Angular: 18.2.0
|
@scsete no, I'm very sorry: currently no advice. I'll ask @manfredsteyer once more. I know he's been rather busy recently. |
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.The text was updated successfully, but these errors were encountered: