You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since some time I am using nrwl/nx to manage multiple apps in an Angular-CLI project.
The nrwl/nx extends Angular-CLI with new schematics and a little different project strukture, which separates apps and libs (shared modules and code).
The structure of a project looks like this:
Note that the src of the newly generated app lies under apps/demo2/apps/demo instead of apps/demo2.
Desired behavior
The src of the newly generated app should be in apps/demo2, so that the structure is the same as in the first app.
Mention any other details that might be useful (optional)
If you don't execute step 5 (Remove angular/cli "file" from dependencies in "package.json") it is using the @angular/cli version 1.6.0 from the .angular_cli.tgz-File. With this version, everything seems to work just fine.
So I guess the bug has been introduced in one of the last versions.
The text was updated successfully, but these errors were encountered:
I'm sorry, but this is an issue you have to bring up with the https://github.com/nrwl/nx folks. If part of the the reproduction steps include converting the project to the Nx setup then it really sounds like it's an integration thing. Maybe their setup doesn't support the latest CLI versions.
Happy to take a look again if you can provide a repro that doesn't need modifications like Nx.
Since some time I am using nrwl/nx to manage multiple apps in an Angular-CLI project.
The nrwl/nx extends Angular-CLI with new schematics and a little different project strukture, which separates
apps
andlibs
(shared modules and code).The structure of a project looks like this:
However, I noticed, that when I generate a new app using
ng generate app app2
, it generates the following structure:I have been searching for this issue in nrwl/nx and I found a few related Issues:
nrwl/nx#131
nrwl/nx#140
However they all point to #7960 which already is closed, so thats why I opened a new Issue.
Versions
Repro steps
ng new demo
)cd .\demo\
)npm i -D @nrwl/schematics
)ng g workspace demo --collection=@nrwl/schematics
npm i -D @angular-devkit/[email protected]
(see Creating new component shows error:TypeError: core_1.PriorityQueue is not a constructor #9374 for more details)npm install
to add additional dependenciesng g app demo2
Observed behavior
Note that the
src
of the newly generated app lies underapps/demo2/apps/demo
instead ofapps/demo2
.Desired behavior
The
src
of the newly generated app should be inapps/demo2
, so that the structure is the same as in the first app.Mention any other details that might be useful (optional)
If you don't execute step 5 (Remove angular/cli "file" from dependencies in "package.json") it is using the @angular/cli version 1.6.0 from the
.angular_cli.tgz
-File. With this version, everything seems to work just fine.So I guess the bug has been introduced in one of the last versions.
The text was updated successfully, but these errors were encountered: