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

Cannot enable prod mode after platform setup. #9

Open
Angelotas opened this issue Feb 15, 2022 · 1 comment
Open

Cannot enable prod mode after platform setup. #9

Angelotas opened this issue Feb 15, 2022 · 1 comment

Comments

@Angelotas
Copy link

Running each microfront in production mode, there is a problem when I try to load two mfe which have the same Angular version, for example, considering your example, MFE2 and MFE3. After I initialize one of them, when I navigate to another I receive this error:
image

I have hidden it managing the error like this:

if (environment.production) {
  try {
    enableProdMode();
  }
  catch (e) {
    console.log(e);
  }
}

But I don't understand why it's happening.

Thanks in advance.

@vugar005
Copy link

vugar005 commented Mar 5, 2022

This is because shell application already runs this. So you dont need to enable prodMode on remote apps. I solved it by removing it.

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