You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use nx add to add localization to an angular app that is part of an nx workspace but the command fails with error SchematicsException [Error]: Option "project" is required.
Expected Behavior
The command should not fail and localization should be configured on the angular app.
GitHub Repo
No response
Steps to Reproduce
Create a new nx workspace with an angular app: npx create-nx-workspace@latest angular-monorepo --preset=angular-monorepo
From the workspace root, issue the following command to add localization to the angular app: nx add @angular/localize --project=angular-monorepo
The command fails with error SchematicsException [Error]: Option "project" is required.
user@MEG-X570:~/Tmp/nx-bug/angular-monorepo$ nx add @angular/localize --project=angular-monorepo
✔ Installing @angular/localize@latest...
✖ Initializing @angular/localize...
Command failed: npx nx g @angular/localize:ng-add --keepExistingVersions
SchematicsException [Error]: Option "project" is required.
at /home/user/Tmp/nx-bug/angular-monorepo/node_modules/@angular/localize/schematics/ng-add/ng_add_bundle.js:127:13
at callRuleAsync (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/@angular-devkit/schematics/src/rules/call.js:77:24)
at /home/user/Tmp/nx-bug/angular-monorepo/node_modules/@angular-devkit/schematics/src/rules/call.js:72:40
at Observable._subscribe (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/observable/defer.js:8:31)
at Observable._trySubscribe (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/Observable.js:41:25)
at /home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/Observable.js:35:31
at Object.errorContext (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/util/errorContext.js:22:9)
at Observable.subscribe (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/Observable.js:26:24)
at /home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/operators/map.js:9:16
at OperatorSubscriber.<anonymous> (/home/user/Tmp/nx-bug/angular-monorepo/node_modules/rxjs/dist/cjs/internal/util/lift.js:14:28)
NX Failed to initialize @angular/localize. Please check the error above for more details.
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
I have reproduced this in a brand new nx workspace using the most recent version of nx.
The text was updated successfully, but these errors were encountered:
Current Behavior
I am trying to use
nx add
to add localization to an angular app that is part of an nx workspace but the command fails with errorSchematicsException [Error]: Option "project" is required.
Expected Behavior
The command should not fail and localization should be configured on the angular app.
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace@latest angular-monorepo --preset=angular-monorepo
nx add @angular/localize --project=angular-monorepo
The command fails with error
SchematicsException [Error]: Option "project" is required.
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
I have reproduced this in a brand new nx workspace using the most recent version of nx.
The text was updated successfully, but these errors were encountered: