-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Import Module while generating Submodule with --routing uses RoutingModule #6533
Comments
It seems to happen only if I generate a module with |
I confirm this issue. |
@web-dave @cyrilletuzi It's work fine just 1 typo |
Well in my case, it was not this typo, it was because I was induced in error by the issue (indicated in the changelog #5377) this new feature solved, where it's written without a As Shouldn't the CLI throws in case of typos instead of doing something weird ? |
My Super hero power: Typos!! |
@cyrilletuzi It does work as expected. I checked it again. Do you have steps to replicate the exact issue? |
without
|
This appears to be the suspect code block: https://github.com/angular/angular-cli/blob/master/packages/%40angular/cli/blueprints/module/index.ts#L127 |
Now this issue happens with the normal and official commands :
results in That's a major issue. |
Still here in cli 1.2.0. Submitted a PR. |
Can someone review my PR ? It's a really annoying issue. |
@Brocco or @filipesilva #goodnessSquad |
Fixed in Schematics. |
@hansl I tested. It works. Thank you! But the |
@doggy8088 It is a known issue that I am actively working on. |
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.
@angular/cli: 1.1.0
node: 6.9.4
os: win32 x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
@angular/language-service: 4.1.3
Repro steps.
ng new bar --routing
ng g module foo --routing -m=app.modules
The log given by the failure.
Output:
Desired functionality.
FooModule should be imported!
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: