We are trying to integrate Single spa with React and Material UI. We have 2 React applications with Material UI:
- The root container.
- A microfront (spa application).
When we integrate both components we have the following error:
It looks like there are several instances of @material-ui/styles initialized in this application. This may cause theme propagation issues, broken class names, specificity issues, and makes your application bigger without a good reason. See https://material-ui.com/r/styles-instance-warning for more info.
The configuration files are like this:
webpack.config. With this configuration we want to externalize so that it uses the material ui dependency present in the root container application.
index.js. We are registering the microfront.
index.html We are using the systemjs to load the material modules and the microfront.
We followed the steps suggested in this page without getting any satisfactory result:
https://material-ui.com/getting-started/faq/#i-have-several-instances-of-styles-on-the-page


