ng new 'Data path "" should NOT have additional properties(dryRun).'

See original GitHub issue

Versions

Angular CLI: 6.0.4
Node: 9.11.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.6.4
@angular-devkit/core         0.6.4
@angular-devkit/schematics   0.6.4
@schematics/angular          0.6.4
@schematics/update           0.6.4
rxjs                         6.2.0
typescript                   2.7.2

Repro steps

ng new <app name>

Observed behavior

ng new vui
Schematic input does not validate against the Schema: {"dryRun":false,"version":"6.0.4","skipGit":false,"skipInstall":false,"linkCli":false,"commit":true,"newProjectRoot":"projects","inlineStyle":false,"inlineTemplate":false,"routing":false,"prefix":"app","style":"css","skipTests":false}
Errors:

  Data path "" should NOT have additional properties(dryRun).

Desired behavior

pretty obvious

Mention any other details that might be useful (optional)

Fresh install of the CLI on Windows 10 using Powershell - let me know if this is not supported?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:26
  • Comments:33 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
eliteproxy7commented, May 25, 2018

looks like the issue is with Angular CLI: 6.0.4

downgrade to 6.0.3 and ng new works for me now

npm uninstall -g @angular/cli npm cache verify npm install -g @angular/cli@6.0.3


## but when I run “ng g c header” i get

Schematic input does not validate against the Schema: {"dryRun":false,"inlineStyle":false,"inlineTemplate":false,"changeDetection":"Default","styleext":"css","spec":true,"flat":false,"skipImport":false,"export":false}
Errors:

  Data path "" should NOT have additional properties(dryRun).

this just started happening

UPDATE (workaround)

in your package.json look for “@angular/compiler-cli”: “^6.0.2”

this will install the 6.0.4 which was updated today about 2 hours ago and thats where the issues from from.

workaround

change this “@angular/compiler-cli”: “^6.0.2” to this “@angular/compiler-cli”: “6.0.3”

this will force it to use 6.0.3

delete your package-lock.json and the node_moudles folder then run “npm install”


— make sure you are using CLI 6.0.3 ---- the latest is 6.0.4 and it will not work with this

4reactions
Broccocommented, May 25, 2018

This issue has been addressed in 2 ways…

  1. Version 6.0.5 was released, which is the same as version 6.0.3
  2. A PR was merged to be included in a future release to resolve this issue in the future #11015

Apologies for any issues this may have caused.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data path "" should NOT have additional properties(dryRun)
This solved my problem when I was seeing Data path "" should NOT have additional properties(es5BrowserSupport) . Upgrading my Angular CLI to v10 ......
Read more >
Angular – Data path “” should NOT have additional properties(dryRun)
I installed latest Angular 6.0.4 in MAC, when I enter in terminal: ng new happiness. display: Schematic input does not validate against the...
Read more >
angular.json styleext option was replaced with style
When I tried to run the Angular generator to create a new component, ... Data path "" must NOT have additional properties(styleext).
Read more >
angular/angular-cli - Gitter
Unfortunately, I receive the error during build my project. The error is Schema validation failed with the following errors: Data path "" should...
Read more >
Schema validation failed with the following errors: Data path ...
... for the question Schema validation failed with the following errors: Data path "" must NOT have additional properties(inlineStyleLanguage)-angular.js.
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 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