angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

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

Open ghost opened this issue 8 years ago • 33 comments

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?

ghost avatar May 25 '18 03:05 ghost

Looks like the new 6.0.5 version fixes, thanks @hansl !

moltenkaizen avatar May 25 '18 05:05 moltenkaizen

Confirmed this issue is fixed in https://github.com/angular/angular-cli/releases/tag/v6.0.5

fralewsmi avatar May 25 '18 05:05 fralewsmi

"Fixed" as in they re-release 6.0.3 with a version bump.

ashleybroughton avatar May 25 '18 05:05 ashleybroughton

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.

Brocco avatar May 25 '18 18:05 Brocco

I'm having this issue after updating to 6.1.2

ng g application my-app --service-worker --style=scss Schematic input does not validate against the Schema: {"serviceWorker":true,"style":"scss","inlineStyle":false,"inlineTemplate":false,"routing":false,"prefix":"app","skipTests":false,"skipPackageJson":false} Errors:

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

playground avatar Aug 04 '18 20:08 playground

Same. Im having this issue on 6.0.8 trying to add @angular/pwa created an issue here https://github.com/angular/angular-cli/issues/11777

oluwatimio avatar Aug 05 '18 19:08 oluwatimio

Running into this same issue in v 6.1.2

Angular CLI: 6.1.2 Node: 8.11.2 OS: darwin x64 Angular: 6.1.2 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.7.2 @angular-devkit/build-angular 0.7.2 @angular-devkit/build-optimizer 0.7.2 @angular-devkit/build-webpack 0.7.2 @angular-devkit/core 0.7.2 @angular-devkit/schematics 0.7.2 @ngtools/webpack 6.1.2 @schematics/angular 0.7.2 @schematics/update 0.7.2 rxjs 6.2.2 typescript 2.7.2 webpack 4.9.2

The error happens when I run ng generate library in src directory.

marc-wilson avatar Aug 09 '18 22:08 marc-wilson

@mswilson4040 have you found a fix for this issue? Bumping into the same

localdevm avatar Aug 13 '18 09:08 localdevm

Updating the CLI seems to fix the issue. Just run npm install -g @angular/cli

realtomaszkula avatar Sep 02 '18 11:09 realtomaszkula

I'm on 6.1.1 and facing the same issue. Edit: Uninstalled @angular/cli, cleared npm cache (cache verify didn't help), and moved to version 6.2.2. Works now.

SharmaTushar avatar Sep 15 '18 15:09 SharmaTushar

i have the same issue moved on 6.2.2 (from 6.2.5) but doesn't work (@angular/compiler-cli 6.1.10)

simplon-romainB avatar Oct 18 '18 14:10 simplon-romainB

can i add script tag under

"architect": {
        "build": {
          "options": {

"scripts": ["./node_modules/@angular/cli/lib/config/schema.json"]
}
}
}

for angular library ? like angular application.

kedar9444 avatar Nov 14 '18 07:11 kedar9444

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.