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
Received a schema validation error when running nx add @angular/pwa --project=myproject. The error message states 'Data path "" must NOT have additional properties(keepExistingVersions).'
Expected Behavior
The command should successfully add PWA capabilities to the specified project within the Nx workspace without schema validation errors
GitHub Repo
No response
Steps to Reproduce
Set up an Nx monorepo workspace with Angular projects.
Run the command nx g @angular/pwa:ng-add --project=myproject (replace myproject with the actual project name).
Observe the InvalidInputOptions error that appears in the terminal.
user@users-MacBook-Air frontend % nx add @angular/pwa --project=myproject
✔ Installing @angular/pwa@latest...
✖ Initializing @angular/pwa...
Command failed: npx nx g @angular/pwa:ng-add --keepExistingVersions --project=myproject
InvalidInputOptions [Error]: Schematic input does not validate against the Schema: {"keepExistingVersions":true,"project":"myproject","target":"build"}
Errors:
Data path "" must NOT have additional properties(keepExistingVersions).
at /Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/tools/schema-option-transform.js:30:27
at /Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/map.js:10:37
at OperatorSubscriber._this._next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js:13:24
at OperatorSubscriber._this._next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18)
at /Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/take.js:15:32
at OperatorSubscriber._this._next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:33:21)
at Subscriber.next (/Users/user/Desktop/myproject/frontend/node_modules/@angular-devkit/schematics/node_modules/rxjs/dist/cjs/internal/Subscriber.js:51:18) {
errors: [
{
instancePath: '',
schemaPath: '#/additionalProperties',
keyword: 'additionalProperties',
params: [Object],
message: 'must NOT have additional properties'
}
]
}
NX Failed to initialize @angular/pwa. Please check the error above for more details.
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Current Behavior
Received a schema validation error when running
nx add @angular/pwa --project=myproject
. The error message states'Data path "" must NOT have additional properties(keepExistingVersions).'
Expected Behavior
The command should successfully add PWA capabilities to the specified project within the Nx workspace without schema validation errors
GitHub Repo
No response
Steps to Reproduce
nx g @angular/pwa:ng-add --project=myproject
(replace myproject with the actual project name).Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: