ngx-builders / source-map-analyzer

typescript, builder
https://www.npmjs.com/package/@ngx-builders/analyze
MIT License
89 stars 12 forks source link

ng add @ngx-builders/analyze fails in Angular 13 #83

Closed brodziakm closed 2 years ago

brodziakm commented 2 years ago

When running the command:

ng add @ngx-builders/analyze

the following failure is reported:

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

with the following detail:

[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID
    at Object.code (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\vocabularies\core\id.js:6:15)
    at keywordCode (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:454:13)
    at .\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:222:17
    at CodeGen.code (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13)
    at CodeGen.block (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18)
    at iterateKeywords (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:219:9)
    at groupKeywords (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:208:13)
    at .\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\validate\index.js:192:13
    at CodeGen.code (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:439:13)
    at CodeGen.block (.\node_modules\@angular-devkit\core\node_modules\ajv\dist\compile\codegen\index.js:568:18)
patelvimal commented 2 years ago

@santoshyadavdev id in schema was deprecated and I guess now removed in v13. reference:- https://github.com/angular/angular-cli/releases/tag/13.0.0

We might need to update @angular-devkit/core version and other stuffs, I will take this up. Will raise the PR once ready.

patelvimal commented 2 years ago

@brodziakm , @santoshyadavdev This issue has been fixed under version 3.0.1 We can mark this as close.

brodziakm commented 2 years ago

Thanks for sorting this out.