"root" path duplicated for new modules when changing "root" path of .angular-cli.json ng generate
to more then one subdirectory level
#8888
Labels
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
severity5: regression
type: bug/fix
Versions
Windows 10, Node 8.9.2, npm 5.5.1, ng-cli 1.6.0:
Repro steps
If I change the
app.root
property to more than one level bellow "src" in.angular-cli.json
,ng generate
duplicates the source path when generating new components.I mean, if "root" is "src", all is well. If root is "src/subdirectory", still all cool. If root is "src/sub/secondsubdirectory", the path of generated modules is duplicated.
Steps to reproduce:
ng new my-new-app
)The path that is generated is duplicating the "root" part of the path.
Observed behavior
Desired behavior
I expect that my new module would be generated directly under
src/main/frontend/app
. Instead, my new module is made insrc/main/frontend/src/main/frontend/app
.Mention any other details that might be useful (optional)
This was mentioned in #58, but closed.
The same happens if I try to generate service, component etc. The problem only appears for more than two levels of directory:
The text was updated successfully, but these errors were encountered: