-
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
Angular is not injecting providers. #6095
Comments
@rrdlpl Seems like you are using old version on Angular CLI |
@sumitarora thanks for the reply
I deleted the ran the site with Invalid Host header |
@sumitarora I managed to get rid off the invalid host header error, but I'm getting the same error as before. The providers aren't getting injected. |
@rrdlpl Is there a repo that I can take a look? |
@sumitarora The repo is private I cannot show you :( |
@rrdlpl Above |
@rrdlpl how did you get rid of the invalid host header? Edit: Apparently now your URL can't be different than what ng serve --host has specified. So if you just do ng serve, you MUST visit the url "http://localhost:4200" |
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.
OS:
On my aws machine I have an angular2 webapp created with @angular/cli. I've tried to install all packages with yarn/npm but it doesn't seem to install everything, because when I enter to the website it doesn't inject any provider and it doesn't render properly.
I've deleted the whole folder of node_modules/ .npm/cache yarn/cache reinstalled everything with yarn and npm but it doesn't work either.
My package.json:
Node: 6.10.2
Npm: 3.10.10
Yarn: 0.22.0
After running:
I'll get UNMET PEER DEPENDENCY errors with angular:
The text was updated successfully, but these errors were encountered: