当前位置:网站首页>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边栏推荐
- Use gstarwmr video conversion for yocto system of i.mx8m development board
- Connect error: no route to host (errno:113)
- How to understand MySQL indexes?
- Input input box click with border
- Potential learning C language - pointer explanation (Advanced)
- 2D人体姿态估计 - DeepPose
- Gcc compiler package
- Unable to locate program input point [email protected]
- Yyds dry inventory everything a primary developer should know about activity
- FPGA(八)RTL代码之四(基本电路设计1)
猜你喜欢

VG4131SxxxN0S1无线模块硬件规格书

Problem - ADB shellerror: insufficient permissions for device: verify udev rules

Installation and deployment of sw-x framework
![[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (I)](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (I)
![Synchronous real-time data of Jerry's watch [chapter]](/img/6f/719aa14fb376aba45472783886dbff.jpg)
Synchronous real-time data of Jerry's watch [chapter]
![[tcapulusdb knowledge base] Introduction to tcapulusdb table data caching](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[tcapulusdb knowledge base] Introduction to tcapulusdb table data caching

88.(cesium篇)cesium聚合图
![Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]](/img/f6/0df9f2a454cea0a95a5347546a90fb.png)
Zigzag sequence traversal of binary tree [one of layered traversal methods - > preorder traversal +level]

MATALB signal processing - signal transformation (6)

Why is informatization ≠ digitalization? Finally someone made it clear
随机推荐
gcc编译器包
Etcd tutorial - Chapter 6 etcd core API V3
Ugui slider minimum control
Counter analysis of the parameter anti content in the backstage of the # yyds dry goods inventory # knife fight shop
FPGA(七)RTL代码之三(复杂电路设计2)
What is the gold content of the equipment supervisor certificate? Is it worth it?
Yyds dry inventory difference between bazel and gradle tools
Yyds dry inventory everything a primary developer should know about activity
[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (II)
How to understand MySQL indexes?
Tkinter Huarong Road 4x4 Tutorial 4
[tcapulusdb] I wish you all a healthy Dragon Boat Festival!
二叉树的锯齿形层序遍历[分层遍历方式之一 -> 前序遍历+level]
Web APIs 高阶函数 丨黑马程序员
【Ubuntu】【Mysql】ubuntu安装了mysql 但是编译报错 mysql.h: No such file or directory
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (I)
Probe into metacosmic storage, the next explosive point in the data storage market?
[thread communication]
Deeply analyzing the business logic of "chain 2+1" mode
嵌入式开发如何进行源代码保密工作