nx: ng g ngrx seems broken in 6.0
After generating auth in libs:
ng g ngrx auth --module=libs/auth/src/lib/auth.module.ts
Path “/libs/auth/src/lib/+state/auth.effects.spec.ts” does not exist.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 11
- Comments: 22 (3 by maintainers)
This is happening with @ngrx/*@5.2.0 as well. I created a workspace with create-nx-workspace then did:
and get:
Path “/apps/school/src/app/+state/User.effects.spec.ts” does not exist.
This is with @angular-cli@6.0.7 and @nrwl/schematics@6.0.4 installed globally.
sticking to 5.x wouldn’t be ideal for new projects
Hi, I seem to still be having this issue using the latest release. Running
ng g ngrx foo --module=libs/foo/src/lib/foo.module.tsdoesn’t create any of the NGRX files in the lib folder. Also doesn’t show any errors, just seems to fail silently. I have @nrwl/schematics 6.3.1 installed globally and the project is using ngrx 6.0.1. Any ideas?EDIT: Ok, so a bit more info here - the above command does work when I specify the --onlyAddFiles parameter
Also experiencing this with @nrwl/schematics 7.7.2. Adding --onlyAddFiles lets command run.