Nx: Running nx ngrx causing error

Created on 11 Apr 2018  Â·  7Comments  Â·  Source: nrwl/nx

Command

ng generate ngrx choose-size --module=apps/angular-pixel-illustrator/src/app/components/choose-size/choose-size.module.ts

Error:

Error: Path "/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts" does not exist.
Path "/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts" does not exist.

Notable mentions

"@angular-devkit/core": "^0.5.4",
"@angular-devkit/schematics": "^0.5.5",
"@angular/cli": "1.7.1",
"@nrwl/schematics": "^0.11.1",
"@nrwl/nx": "^0.11.1"

I was wondering if anyone else is coming across the same issue ^, and if so, how did they solve it? Thank you.

bug

Most helpful comment

@charliegreenman, I will investigate this.

All 7 comments

@charliegreenman, I will investigate this.

Hi @CharlieGreenman we are investigating this but if you could provide repo with the issue would help us greatly.

I should be able to do that. Will do Saturday night Sunday morning ASAP.
Thank you.

On Fri, Apr 13, 2018 at 3:52 PM Jason Jean notifications@github.com wrote:

Hi @CharlieGreenman https://github.com/CharlieGreenman we are
investigating this but if you could provide repo with the issue would help
us greatly.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nrwl/nx/issues/415#issuecomment-381244225, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AIJP7So2K2jgDLvdR3dfUZ9MfYMdsttTks5toQIJgaJpZM4TPLeP
.

@FrozenPandaz @ThomasBurleson A temporary repo for this issue has been created: https://github.com/CharlieGreenman/MonoAngularPixel

Thank you for your reproduction! I was able to reproduce this via your repo.

You should not need to install your own versions of @angular-devkit/core and @angular-devkit/schematics.

Fixing these dependencies allows you to generate ngrx again. You might have to remove your package-lock.json if you have errors after installing Nx.

I made a PR to your reproduction here: https://github.com/CharlieGreenman/MonoAngularPixel/pull/1

@FrozenPandaz that did it. Obviously we can look into this particular scenario not affecting ngrx generation. Going to close, and if we would like to open another ticket for the above, by all means.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jon301 picture jon301  Â·  3Comments

vimalraj-a picture vimalraj-a  Â·  3Comments

kmkatsma picture kmkatsma  Â·  3Comments

about-code picture about-code  Â·  3Comments

joelmuskwe picture joelmuskwe  Â·  3Comments