Routing (in-memory routers in the remote apps) and authentication state are being synced with host via PubSub.
From the root folder:
npm install
npm start
The host application is running locally on port 8080
.
The Module Federation plugin exports a federated module name as a global variable. This can clash with HTML element IDs, which are also attached to the global object, leading to the fn is not a function...
error, e.g. https://github.com/module-federation/module-federation-examples/issues/322.
Think twice before sharing a dependency
Flowbite styles (e.g. inputs) are clashing with @material-tailwind/react, so the official Flowbite Tailwind config is not included in the Dashboard app, which is probably not an option, if you want to use other Flowbite components. In general I found Tailwind based component libraries do not work well when used together in microfrontends.
See also: The Problem of Using TailwindCSS in Module Federation
Module Federation official github page
"Practical Module Federation" book
A curated list of resources about Micro frontends grouped by types