Skip to content

An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID #22637

@ofirrifo

Description

@ofirrifo

🐞 Bug report

Command (mark with an x)

I have an Angular project which I just upgrade from 12 to 13.2
In this project I have my own schematics.
In the branch with new angular 13.2 I start to get error when I execute my schematics.
When I go back to the master branch with angular version 12 schematics work as should.

The schematics that I'm executed:

/versions/node/v16.10.0/bin/node" "/Users/ofirf 1/dev/singularity-ui/node_modules/@angular/cli/bin/ng" generate @sing/component ofir

The error:

An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "/private/var/folders/64/rqq3mpzn6tx_8bgq7l7_md700000gp/T/ng-qCJE17/angular-errors.log" for further details.

Log of file angular-errors.log:

[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID
    at Object.code (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/vocabularies/core/id.js:6:15)
    at keywordCode (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/validate/index.js:454:13)
    at /Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/validate/index.js:222:17
    at CodeGen.code (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/codegen/index.js:439:13)
    at CodeGen.block (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/codegen/index.js:568:18)
    at iterateKeywords (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/validate/index.js:219:9)
    at groupKeywords (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/validate/index.js:208:13)
    at /Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/validate/index.js:192:13
    at CodeGen.code (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/codegen/index.js:439:13)
    at CodeGen.block (/Users/ofirf 1/dev/singularity-ui/node_modules/ajv/dist/compile/codegen/index.js:568:18)
  • generate

Is this a regression?

Yes

🔥 Exception or Error


An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "/private/var/folders/64/rqq3mpzn6tx_8bgq7l7_md700000gp/T/ng-qCJE17/angular-errors.log" for further details.

🌍 Your Environment


Angular CLI: 13.2.0
Node: 16.10.0
Package Manager: npm 7.6.0
OS: darwin x64

Angular: 13.2.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1302.0
@angular-devkit/build-angular   13.2.0
@angular-devkit/core            13.2.0
@angular-devkit/schematics      13.2.0
@schematics/angular             13.2.0
ng-packagr                      13.2.0
rxjs                            7.5.2
typescript                      4.5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions