Skip to content
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

multiple angular apps are not working when enableProdMode is in place #16

Open
amit131 opened this issue Nov 14, 2018 · 3 comments
Open

Comments

@amit131
Copy link

amit131 commented Nov 14, 2018

When using multiple angular apps with enableProdMode only first angular app works, on clicking next one, there is error in console "app died in status loading_source_code: cannot enable prod mode after platform setup". Even after build step same thing is happening. But without enableProdMode everything is fine and there is no issue (atleast in dev mode)

@amit131
Copy link
Author

amit131 commented Nov 15, 2018

I'm of the view since I'm on localhost (OS Windows 8.1) so import { isDevMode } from '@angular/core'; is better here to ascertain my environment. I try to use if(!isDevMode()) enableProdMode(); and am good to go. Now curious to see will it really good in prod environment as well coz on prod environment enableProdMode() should work fine?

@amit131 amit131 closed this as completed Nov 15, 2018
@amit131 amit131 reopened this Nov 15, 2018
@amit131
Copy link
Author

amit131 commented Nov 16, 2018

I tested by deploying on surge but still I'm having same issue

@olindasequeiram
Copy link

Hi @amit131 Was this error resolved. Im getting the same problem when I have 2 angular apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants