Skip to content
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

NOT SUPPORTED: keyword "id", use "$id" for schema ID #29

Open
richardleve opened this issue Dec 17, 2021 · 4 comments
Open

NOT SUPPORTED: keyword "id", use "$id" for schema ID #29

richardleve opened this issue Dec 17, 2021 · 4 comments

Comments

@richardleve
Copy link

richardleve commented Dec 17, 2021

I am at the beginning of the course, and can't run the command below, the error message seems somehow related do the upgrade to Angular 13

// TERMINAL
$ ng g store auth/Auth --module auth.module.ts
An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "/tmp/ng-fwrbwu/angular-errors.log" for further details.

// ANGULAR-ERRORS.LOG
[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID
at Object.code (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/vocabularies/core/id.js:6:15)
at keywordCode (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:454:13)
at /home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:222:17
at CodeGen.code (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:439:13)
at CodeGen.block (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:568:18)
at iterateKeywords (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:219:9)
at groupKeywords (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:208:13)
at /home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/validate/index.js:192:13
at CodeGen.code (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:439:13)
at CodeGen.block (/home/richard/git/personal/ngrx-course/node_modules/@angular-devkit/core/node_modules/ajv/dist/compile/codegen/index.js:568:18)

@richardleve
Copy link
Author

Modifying the CLI version worked here as Richard suggested in the link below:
https://stackoverflow.com/questions/69895552/not-supported-keyword-id-use-id-for-schema-id-tslint-ng-add-angular-e

@fahussain
Copy link

I ran into the same issue and your suggestion helped but it's ridiculous that the very first lesson is failing.

@hanyska
Copy link

hanyska commented Jan 25, 2022

In your package.json change @angular/cli": "^12.2.0

@codegets
Copy link

Experienced this in the beginning of the course and was worried. Thank you guys it worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants