当前位置:网站首页>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边栏推荐
- Potential learning C language - pointer explanation (Advanced)
- 【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)
- Basic concepts of graph theory
- MATALB signal processing - signal transformation (6)
- 88.(cesium篇)cesium聚合图
- The four traversal methods of the map set can be seen at a glance
- Concise words tell about technical people who must master basic IT knowledge and skills. Part 1
- VG4131SxxxN0S1无线模块硬件规格书
- [tcaplusdb knowledge base] view tcapdir directory server
- 【TcaplusDB知识库】TcaplusDB表数据缓写介绍
猜你喜欢

Ugui slider minimum control

Open source demo| you draw and I guess -- make your life more interesting

Mobaihe box, ZTE box, Migu box, Huawei box, Huawei Yuehe box, Fiberhome box, Skyworth box, Tianyi box and other operators' box firmware collection and sharing

【TcaplusDB知识库】TcaplusDB-tcapulogmgr工具介绍(二)

Web APIs 高阶函数 丨黑马程序员
![二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]](/img/f9/efb73dd6047e6d5833581376904788.png)
二叉树的层序遍历 II[层序遍历方式之一 ->递归遍历 + level]

What is the gold content of the equipment supervisor certificate? Is it worth it?
![[yunyuanyuan] it's so hot. Why don't you come and understand it?](/img/a8/99037ec5b796e39b9e76eac95deb86.png)
[yunyuanyuan] it's so hot. Why don't you come and understand it?

ssm项目环境初步搭建

初探元宇宙存储,数据存储市场下一个爆点?
随机推荐
Web APIs 高阶函数 丨黑马程序员
2022/02/15
一个注解优雅的实现 接口数据脱敏
【TcaplusDB】祝大家端午安康!
高性能限流器 Guava RateLimiter
分享 60 个神级 VS Code 插件
[tcaplusdb knowledge base] view tcapdir directory server
Movement state change of monitoring device of Jerry's watch [chapter]
2D人体姿态估计 - DeepPose
Digital twin application of smart Park Based on Web GIS aerial photography
【资料上新】基于3568开发板的NPU开发资料全面升级
Faster memcpy alternatives- faster alternative to memcpy?
嵌入式开发如何进行源代码保密工作
Inventory deduction based on redis
【TcaplusDB知识库】TcaplusDB表数据缓写介绍
PHP实现 mqtt通信
What is the gold content of the equipment supervisor certificate? Is it worth it?
Problem - ADB shellerror: insufficient permissions for device: verify udev rules
go-redsync分布式锁源码解析
Etcd教程 — 第六章 Etcd之核心API V3