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
{{ message }}
Repository navigation
ng generate incorrectly adds component to a module #10030
Hi! Did you find a solution to this issue? I'm also experiencing the same thing when I create a component from the CLI, except it is moving the last 2 characters. I'm using VS 2017 as my IDE.
@worthy7 I'm using the latest versions but still seeing the problem. I checked to make sure I'm using the latest CLI globally and this is what came up. Note: I'm on Windows platform.
Activity
worthy7 commentedon Mar 26, 2018
Bumb, kind of critical.
mbtaCode commentedon Apr 18, 2018
Hi! Did you find a solution to this issue? I'm also experiencing the same thing when I create a component from the CLI, except it is moving the last 2 characters. I'm using VS 2017 as my IDE.
Thanks,
Mel
worthy7 commentedon Apr 19, 2018
@mbtaCode Yea It's fixed in the later versions
mbtaCode commentedon Apr 20, 2018
@worthy7 I'm using the latest versions but still seeing the problem. I checked to make sure I'm using the latest CLI globally and this is what came up. Note: I'm on Windows platform.
C:\Program Files\nodejs>npm list -global --depth 0
C:\Users\XXXX\AppData\Roaming\npm
+-- @angular/cli@1.7.4
`-- npm@5.8.0
DanielKucal commentedon Apr 20, 2018
@mbtaCode, maybe you have different version of
@angular/cliinstalled locally in the project?mbtaCode commentedon Apr 20, 2018
@DanielKucal I ran ng v in my angular CLI project folder and the output is:
Angular CLI: 1.7.4
Node: 9.2.0
OS: win32 x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
DanielKucal commentedon May 2, 2018
@mbtaCode, I just checked it with the newest version and the bug is still present for me too.
worthy7 commentedon Jun 1, 2018
This is fixed btw.
mbtaCode commentedon Jun 1, 2018
@worthy7 Thanks for letting me know. I haven't seen the issue reappear for a while. It does seem to be fixed.
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.