-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Wrong path when generating new apps/libs on windows #250
Comments
See also #22 |
I also face this issue on macos with cli 1.6.7, and resetting |
@dpalita thats because of the version of the .tgz file I guess. If you use the same version installed normaly it works too. |
@Springrbua yes I suppose so, I was just confirming your comment "it seems like nrwl/nx does not work well with newer angular/cli." |
@dpalita as you are working with a file named |
Well, ng --version returns 1.6.5... but: My global @angular/cli version is 1.6.7 (but shouldn't be used, I get the "version mismatch" warning), in both cases ng version is 1.6.5... The only thing I did between the changes in I do not understand what difference between the 2 modes leads to a different behavior. In case that helps, I took this tgz from a clean |
Maybe the file is a patched version of angular/cli? |
As stated in Issue 140, this is a bug in Angular-CLI, which should be fixed in the version 1.7.0. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Since some time I am using nrwl/nx to manage multiple apps in an Angular-CLI project.
The structure of a project usually 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:
#131
#140
However they all point to angular/angular-cli#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 nx graph doesn't recognise "appsDir" as apps #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 it seems like nrwl/nx does not work well with newer angular/cli.
The text was updated successfully, but these errors were encountered: