Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schematic input does not validate against the Schema: {"name":"testng7"} on Angular 7

I updated the Angular CLI to the latest @angular/[email protected] on a Mac OS. When issuing the command ng new testng7, I get this error:

Schematic input does not validate against the Schema: {"name":"testng7"}
Errors:
  Data path "" should have required property 'version'.

And nothing is created. Any clues how to fix?

like image 816
mohsenmadi Avatar asked Oct 24 '18 14:10

mohsenmadi


2 Answers

This error is possible of avoiding naming standards

Project name can not have underscore '_'. It can have dashes '-', small and capital letters and digits.

Valid Project Names

myProject //camel casing style or JavaScript style

MyProject //normal style

MyProject1 //letters and numbers mixed style

My-Project1 //letters, numbers and dash mixed style

Invalid Project Names

MyProject-1 //dash can not be between letter and digit

My_Project //underscore is restricted
like image 89
WasiF Avatar answered Oct 16 '22 09:10

WasiF


I added this flag to make it work --client-project

ng add @nguniversal/express-engine --client-project=launcher

like image 42
Omar Avatar answered Oct 16 '22 09:10

Omar