-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schematics: ng generate feature {folder}/{featureName}
not working
#1064
Labels
Comments
brandonroberts
added a commit
that referenced
this issue
May 15, 2018
brandonroberts
added a commit
that referenced
this issue
May 15, 2018
MikeRyanDev
pushed a commit
that referenced
this issue
May 15, 2018
which version of ngrx schematics is this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm submitting a...
What is the current behavior?
When trying to generate a feature in a module folder as described in the documentation...
...the produced actions, reducers and effects don't get generated in the module folder, but instead in the project root...
...and the generated types in the actions, reducers and effects are treating the feature path
user/User
as type name. Here's what the users module looks like after that:Another example, the generated actions:
Of course, the same happens for effects and reducers. I'll leave that out for brevity.
Expected behavior:
The feature files (actions, reducers, effects) should be generated inside the specified module folder and the path should be stripped off the feature name when generating the types.
Minimal reproduction of the problem with instructions:
ng generate module User
ng generate feature user/User -m user --group
Version of affected browser(s),operating system(s), npm, node and ngrx:
node v9.11.1
npm 6.0.1
angular, ngrx on latest, package.json:
The text was updated successfully, but these errors were encountered: