-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build -prod app stuck on loading screen #1034
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
@CristyTarantino did you create the project using the |
@jeffbcross no I didn't. Just |
I'm having a similar issue. I included ng2-bootstrap into my app. It works in non-prod mode, but however, as soon as I have a When I run without the "-prod" switch everything works as expected (including the Bootstrap style of AlarmComponent). My environment: |
This seems related to #951 but from the information here it is not the same. @CristyTarantino @jwoehrle did you add any third party libraries to your project? |
@filipesilva yes, I included ng2-bootstrap and along with it momentjs... I will try changing the package format as suggested in your answer in #951 first thing tomorrow morning and let you know if this helps. |
@filipesilva no I don't have any third party so far. I was just following the tutorial. |
@CristyTarantino could you provide me with a repo so I can debug the issue? |
@filipesilva having a look through the repo I was using lodash without specifying the format. |
@filipesilva I can confirm that adding (system-config.ts) the package format as:
resolved my issue. Thank you very much. Can't wait for the final version of angular-cli to be released 👍 |
@CristyTarantino @jwoehrle glad to hear it's working for you now! There is some more information regarding the why and how of this happening on this issue #951 (comment) I believe the need for specifying every package format will be gone in beta.6 though, due to changes in our bundling procedure. |
I have the same issue, but I don't have any third party libraries included. |
I had the same issue and could solve it by manually changing |
@SnuK87 it worked to me! to redirect to my "home"... Thanks, for your comment... |
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. |
Mac El Capitan
do on your code? etc.
I have a component and in the file I do:
in chartview.service file
Where CHARTVIEW and ChartView are:
Basically trying to use https://angular.io/docs/ts/latest/guide/dependency-injection.html guide for factory provider.
If I do
ng serve
the app works perfectly.If I do
ng serve -prod
the app shows the loading screen and it never loads.If I comment out
and then
ng serve -prod
the app works fine.more information.
There is literally no error message either in the terminal or in the console.
Thanks for any help.
The text was updated successfully, but these errors were encountered: