运行时ng deploy我收到以下错误:
An unhandled exception occurred: NOT SUPPORTED: keyword "id", use "$id" for schema ID
See "C:\Users\theoh\AppData\Local\Temp\ng-Nv0wMh\angular-errors.log" for further details.
Run Code Online (Sandbox Code Playgroud)
错误的完整日志如下:
[error] Error: NOT SUPPORTED: keyword "id", use "$id" for schema ID
at Object.code (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\vocabularies\core\id.js:6:15)
at keywordCode (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\validate\index.js:454:13)
at D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\validate\index.js:222:17
at CodeGen.code (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\codegen\index.js:439:13)
at CodeGen.block (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\codegen\index.js:568:18)
at iterateKeywords (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\validate\index.js:219:9)
at groupKeywords (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\validate\index.js:208:13)
at D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\validate\index.js:192:13
at CodeGen.code (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\codegen\index.js:439:13)
at CodeGen.block (D:\code\brain-consulting\bbc\node_modules\@angular\cli\node_modules\ajv\dist\compile\codegen\index.js:568:18)
Run Code Online (Sandbox Code Playgroud)
我ng add @angular-eslint/schematics@next按照这里的建议进行了尝试,但没有成功。我使用的版本如下:
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1300.3
@angular-devkit/build-angular 13.0.3
@angular-devkit/core 13.0.3
@angular-devkit/schematics 13.0.3 …Run Code Online (Sandbox Code Playgroud) 更新至 Angular v15。运行时ng test我收到以下错误:
\xe2\xa0\x8b Generating browser application bundles (phase: setup)...node:internal/process/promises:288\n triggerUncaughtException(err, true /* fromPromise */);\n ^\n\nAssertionError [ERR_ASSERTION]: Compilation cannot be undefined.\n at webpackOptions.entry (D:\\wqems\\WqEMS-portal\\wqems-portal\\node_modules\\@angular-devkit\\build-angular\\src\\webpack\\plugins\\styles-webpack-plugin.js:58:46)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {\n generatedMessage: false,\n code: 'ERR_ASSERTION',\n actual: undefined,\n expected: true,\n operator: '=='\n}\n\nNode.js v18.12.1\nRun Code Online (Sandbox Code Playgroud)\n任何有关出现问题的帮助将不胜感激。
\n