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
Micro Frontend - A platform with a different configuration has been created. Please destroy it first #47
Comments
Adding this to the bootstrap.ts in both the shell and mfe will make the mfe reuse an existing platform instead of trying to create a new instance, which will lead to the error you're experiencing. |
Thanks, @kbleeck that worked. |
Thanks, @kbleeck for this pointer. |
@saikumar-madana Areyy sai ga... dorikaav ikkada... :D Rammurthy |
Was this remedied for later versions > 12? |
I am trying to build a POC for Micro Frontend using Angular and Webpack Module Federation. In this, I have created a shell app and another mfe1 app and rendering that mfe1 on a specific route hit and it is working as expected and rendering the app. Now, I am trying to create another app called mfe2 and render it. In this mfe2, I am creating a web component using Angular elements and rendering that in the shell app. When I do that, I am facing the following issue
Error: A platform with a different configuration has been created. Please destroy it first.
when the following code is executing
I don't understand where the exact issue is. I am adding the required code below.
MFE2:
app.module.ts
webpack.config.js
SHELL:
rendering it in a component:
webpack.config.js
Please help me solve this issue.
Thanks...
The text was updated successfully, but these errors were encountered: