0

I created an nx workspace

ng new nx-ng --collection=@nrwl/schematics

I then attempted to add an app with the following command

ng generate app pim --directory=ts  --tags=shared,experimental --prefix=pim --inline-style --inline-template --style=scss

...but I get the following error

Path "/apps/ts/pim/src/app/app.component.html" does not exist.

st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75

1 Answers1

0

Install the older version of angular CLI.

npm i -D @angular/cli@7.3.1

as per advice in Closed Nx Issue#1104

The default version with no generator errors when adding Nx to your project is 7.3.1, but there a possibility that a newer version might also have a fix, e.g. upgrade to 7.3.4 etc.

OzBob
  • 4,227
  • 1
  • 39
  • 48