question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular Universal: Schema validation failed with the following errors: Data path "" should NOT have additional properties(index).

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x ] build
- [x ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Node v10.5.0 NPM v6.1.0

Angular CLI: 6.0.8 Node: 10.5.0 OS: win32 x64 Angular: 6.0.6 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.8 @angular-devkit/build-angular 0.6.8 @angular-devkit/build-optimizer 0.6.8 @angular-devkit/core 0.6.8 @angular-devkit/schematics 0.6.8 @angular/cli 6.0.8 @angular/platform-server 6.1.4 @ngtools/webpack 6.0.8 @schematics/angular 0.6.8 @schematics/update 0.6.8 rxjs 6.2.1 typescript 2.7.2 webpack 4.8.3

Repro steps

ng serve or npm run build:ssr

The log given by the failure

Schema validation failed with the following errors: Data path “” should NOT have additional properties(index). npm ERR! code ELIFECYCLE

Desired functionality

No errors.

Mention any other details that might be useful

I am trying to implement Angular Universal, I have followed this article https://angular.io/guide/universal I did go through other articles with similar problems, all of them say to downgrade npm package versions to 0.6.3. I currently run the latest cli, hence opening this issue. Please let me know if additional details are needed

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
pradeepversecommented, Nov 14, 2018

Create a fresh ng project using latest angular-cli and compare angular.json with your project’s angular.json. You might be able to figure our the issue.

3reactions
scorpion-3commented, Aug 29, 2018

after updating to the latest version it got fixed. hence closing this issue. Thanks a lot for the help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Schema validation failed with the following errors: Data ...
Schema validation failed with the following errors: Data path "['server']" should NOT have additional properties(scripts).
Read more >
Schema validation failed: Data path "" should NOT have ...
Schema validation failed with the following errors: Data path "path/to/invalid/option" should NOT have additional properties(invalid).
Read more >
Schema validation failed with the following errors: Data path ...
When upgrading Angular from version 8 to 10 I got very similar error, namely Schema validation failed with the following errors: Data path...
Read more >
angular/angular-cli - Gitter
Schema validation failed with the following errors: Data path "" should NOT have additional properties(something). losorio35. @losorio35.
Read more >
Data path "" should NOT have additional properties ...
Data path "" should NOT have additional properties(customWebpackConfig). ... Then get error: Schema validation failed with the following errors:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found