-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular cli Generates Wrong Directory Path in app.module.ts #7135
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
Comments
Not only in Versions.@angular/cli: 1.2.4 |
i have the same issue |
+1 |
me too |
I confirm this issue, I was about to open a ticket. More details about the problem :
is OK, but :
generates an invalid path (and thus a compile error) in @filipesilva I suspect it's due to the new change of A test is missing, a regression on such a basic command is not normal. |
@Brocco can you have a look? |
I've checked on an older angular-cli version and found one that didn't had the issue : |
@djtahl same case with me, it was working fine with 1.0.6 but after updating to 1.2.4 it's giving wrong relative path. |
I am facing one more issue related to this. After updating to 1.2.4, the import statement of environment object is changed to |
Any news about this ? There is currently 3 major problems with generation (this one, #6533 and #7061). Some of them dating from several weeks ago, and I'm quite worried to see new versions of the CLI released without any fix for these major regressions. I tried to help with a PR for one of them, posted one month ago, but which has been completely ignored. Speed is nice, but a working tool should be a priority. Currently the generation has become so buggy I'm starting to think about stopping to use it during the trainings I do... |
…a module This is similar to 86021a0. Fix angular#7135
+1 |
1.3.0 still same.. |
same problem |
@djtahl OMG thank you, I just changed it to the right path. Not a nice thing to get when your just new to it. |
This issue has been fixed in the master branch. However, the issue still exist in 1.3.x and 1.4.x branch. |
…a module This is similar to 86021a0. Fix angular#7135
Fixed via #7090 |
same problem :( |
This issue was fixed in 1.4.0, but not 1.3. We are looking at fixing it in 1.3 as well. |
Great! Thanks @hansl ! |
I use 1.6.3 and ng new project-name still results: Error: Path "/app/app.module.ts" does not exist. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
node -v : v6.10.0
npm -v : 5.3.0
ng -v :
Repro steps.
ng new myProject
ng g c myComponent
The log given by the failure.
Desired functionality.
The path written is constantly adding "src/app" part whereas older version of the cli did not have this behavior
The correct import statement should be :
import { MyComponentComponent } from './common/my-component/my-component.component';
Mention any other details that might be useful.
This issue has also been reported on StackOverflow by another user :
https://stackoverflow.com/questions/45293787/angular-cli-generates-wrong-directory-path-in-app-module-ts
The text was updated successfully, but these errors were encountered: