当前位置:网站首页>Error: schema validation failed with the following error: the data path '' should not have other properties (projects)
Error: schema validation failed with the following error: the data path '' should not have other properties (projects)
2022-06-29 03:36:00 【javail】
problem :
After migrating application from angular 5 to 6, on running ng serve the following errors pop up. Take the application from angular 5 Migrate to 6 after , Running ng serve The following error will pop up .
Schema validation failed with the following errors: Data path "" should NOT have additional properties(project). Schema validation failed with the following error : Data path “” No other attributes expected ( project ).Error: Schema validation failed with the following errors: Data path "" should NOT have additional properties(project). error : Schema validation failed with the following error : Data path “” Should not have other attributes ( project ).at MergeMapSubscriber._registry.compile.pipe.operators_1.concatMap.validatorResult [as project] (.../TemplateApp/me-cmf-web-template-angular/node_modules/@angular-devkit/core/src/workspace/workspace.js:210:42) at MergeMapSubscriber._tryNext (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:65:27) at MergeMapSubscriber._next (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:55:18) at MergeMapSubscriber.Subscriber.next (/home/training/Attinad_Projects/TemplateApp/me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:64:18) at MergeMapSubscriber.notifyNext (.../TemplateApp/me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:84:26) at InnerSubscriber._next (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Inne stay MergeMapSubscriber._registry.compile.pipe.operators_1.concatMap.validatorResult [ As a project ] (.../TemplateApp/me-cmf-web-template-angular/node_modules/@angular-devkit/core/src/workspace/workspace. js:210:42) stay MergeMapSubscriber._tryNext (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:65:27 ) stay MergeMapSubscriber._next (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:55:18) stay MergeMapSubscriber.Subscriber. stay MergeMapSubscriber.notifyNext (. ../TemplateApp/me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:84:26) stay InnerSubscriber._next (.../me -cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/InnerSubscriber.js:25:21) at InnerSubscriber.Subscriber.next (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:64:18) at MapSubscriber._next (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/map.js:52:26) at MapSubscriber.Subscriber.next (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:64:18) at SwitchMapSubscriber.notifyNext (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:77:26)rSubscriber.js:25:21) stay InnerSubscriber.Subscriber.next (/.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:64 :18) stay MapSubscriber._next (.../me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/map.js:52:26) stay MapSubscriber. SwitchMapSubscriber.notifyNext (... /me-cmf-web-template-angular/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/switchMap.js:77:26)
I assume that the error is with .angular.json file which I re-named from .angular-cli.json . I assume that the mistake is related to me .angular-cli.json Renamed .angular.json Related documents .
My .angular.json file is as follows : my .angular.json The documents are as follows :
{ "$schema": "./node_modules/@angular/cli/lib/config/schema.json", "project": { "name": "mediaweb" }, "apps": [{ "root": "src", "outDir": "dist/browser", "assets": [ "assets", "favicon.ico" ], "index": "index.html", "main": "main.ts", "polyfills": "polyfills.ts", "test": "test.ts", "tsconfig": "tsconfig.app.json", "testTsconfig": "tsconfig.spec.json", "prefix": "app", "styles": [ "styles.scss", "../node_modules/owl.carousel/dist/assets/owl.carousel.css", "../node_modules/owl.carousel/dist/assets/owl.theme.default.css", "../node_modules/video.js/dist/video-js.css" ], "scripts": [ "../node_modules/jquery/dist/jquery.js", "../node_modules/owl.carousel/dist/owl.carousel.js", "../node_modules/video.js/dist/ie8/videojs-ie8.js", "../node_modules/video.js/dist/video.js" ], "environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.dev.ts", "prod": "environments/environment.prod.ts" } }, { "platform": "server", "root": "src", "outDir": "dist/server", "assets": [ "assets", "favicon.ico" ], "index": "index.html", "main": "main.server.ts", "test": "test.ts", "tsconfig": "tsconfig.server.json", "testTsconfig": "tsconfig.spec.json", "prefix": "app", "styles": [ "styles.scss" ], "scripts": [], "environmentSource": "environments/environment.ts", "environments": { "dev": "environments/environment.dev.ts", "prod": "environments/environment.prod.ts" } } ], "e2e": { "protractor": { "config": "./protractor.conf.js" } }, "lint": [{ "project": "src/tsconfig.app.json", "exclude": ["**/node_modules/**", "**/UI/**"] }, { "project": "src/tsconfig.spec.json", "exclude": "**/node_modules/**" }, { "project": "e2e/tsconfig.e2e.json", "exclude": "**/node_modules/**" } ], "test": { "karma": { "config": "./karma.conf.js" } }, "defaults": { "styleExt": "scss", "component": {} }}Should I re-structure the json file, if so how?. I should restructure json Documents , If so ?
Any help would be great. Any help would be great .
Solution :
Reference resources : https://stackoom.com/en/question/3XrEH边栏推荐
- Restore the binary search tree [simulate according to the meaning of the question - > find the problem - > analyze the problem - > see the bidding]
- 【TcaplusDB知识库】TcaplusDB-tcapsvrmgr工具介绍(一)
- 深度解析“链动2+1”模式的商业逻辑
- [leetcode daily question] number of schemes to reconstruct a tree
- Web APIs 高阶函数 丨黑马程序员
- MATALB signal processing - signal transformation (7)
- [tcaplusdb knowledge base] view tcapdir directory server
- Yyds dry inventory difference between bazel and gradle tools
- Seura 2测试代码总结
- 87. (cesium chapter) cesium thermal map (pasted with terrain)
猜你喜欢

Wechat applet development Basics

Get error: Unsupported fork ordering: eip150block not enabled, but eip155block enabled at 0

Etcd教程 — 第六章 Etcd之核心API V3

【TcaplusDB】祝大家端午安康!

一个注解优雅的实现 接口数据脱敏

【面试指南】AI算法面试
![[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (II)](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (II)

Etcd tutorial - Chapter 6 etcd core API V3

87.(cesium篇)cesium热力图(贴地形)
![[World Ocean Day] tcapulusdb calls on you to protect marine biodiversity together](/img/87/373af42f3a2ffa6b9f7fb0c0c3735b.png)
[World Ocean Day] tcapulusdb calls on you to protect marine biodiversity together
随机推荐
Seura 2测试代码总结
DevOps笔记-05:IT行业中BA、SM、PO、PM、PD、Dev、Ops、QA都是什么角色
Etcd教程 — 第七章 Etcd之事务API
[Ubuntu] [MySQL] Ubuntu installs mysql, but the compilation error is mysql h: No such file or directory
VG4131SxxxN0S1无线模块硬件规格书
Shell script to count files, then remove oldest files
20款IDEA 神级插件 效率提升 30 倍,写代码必备
19.03 容器的说明和简单应用例续
[tcapulusdb knowledge base] batch copy the game area
设备监理师证书含金量怎样?值得考吗?
不同的二叉搜索樹[自下而上回溯生成樹+記憶搜索--空間換時間]
Tupu software intelligent energy integrated management and control platform
想当设备管理师?满足这三个报考条件就可以
87. (cesium chapter) cesium thermal map (pasted with terrain)
Gartner“客户之声”最高分,用户体验成中国数据库一大突破口
分布式id解决方案
Get error: Unsupported fork ordering: eip150block not enabled, but eip155block enabled at 0
FPGA(八)RTL代码之四(基本电路设计1)
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (III)
Yyds dry inventory difference between bazel and gradle tools