-
Notifications
You must be signed in to change notification settings - Fork 12k
Generate service : providers registered in the wrong place if { provide } is present #7061
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
The problem may be coming from this function, but didn't find yet why :
|
@hansl Still there with the schematics |
Created pull request with fix. Can somebody review? |
@filipesilva @Brocco This issue has been marked as a regression and is 4 months old, and has a PR waiting which is 2 months old. Can someone take care of it ? |
@hansl @filipesilva @Brocco This issue has been marked as a regression and is 5 months old, and has a PR waiting which is 3 months old. Can someone take care of it ? |
Happy to see someone is caring for this issue, but quite disagree with the new severity level : it's not just "inconvenient", it produces code that break compilation. So it should at least be "severity3: broken". |
Will this be fixed in v6 ? |
As in v6 services are not provided in the NgModule anymore, the issue is gone. |
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. |
Uh oh!
There was an error while loading. Please reload this page.
Bug Report or Feature Request (mark with an
x
)Versions.
cli 1.2.1
Repro steps.
Then in
AppModule
, provide it like this :Now, if you generate new services, with module registering option :
It produces :
The text was updated successfully, but these errors were encountered: