Schematics: ng generate feature {folder}/{featureName}
not working
#1064
Labels
ng generate feature {folder}/{featureName}
not working
#1064
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: