Questions tagged [webpack-module-federation]
The webpack-module-federation tag has no usage guidance.
webpack-module-federation
589
questions
28
votes
4
answers
75k
views
Webpack module federation is not working with eager shared libs
I was looking into Webpack 5 Module federation feature, and have some trouble understanding why my code does not work.
The idea is pretty similar to what standard module federation examples do:
app1 - ...
27
votes
5
answers
24k
views
WP5 Module Federation: remoteEntry.js caching
With Webpack 5 module federation if remote entry is modified, you don't need to redeploy main module/application and the newest version of the module will be loaded when it's requested by the browser.
...
17
votes
5
answers
38k
views
Error: @vitejs/plugin-vue requires vue (>=3.2.13) or @vue/compiler-sfc to be present in the dependency tree
I'm working with the berry version of yarn with modules federation and vue3.
When I run these commands to create the base of the project:
mkdir vue-error
yarn set version stable
yarn plugin import ...
16
votes
3
answers
22k
views
Webpack Module Federation Unsatisfied version 11.x.x of shared singleton module @angular/common (required ^7.2.0)
I am trying to get my rather complicated monolithic app to work with Module Federation. My webpack config looks like that
plugins: [
new ModuleFederationPlugin({
remotes: {
&...
16
votes
4
answers
17k
views
Webpack module federation error: Cannot read properties of undefined (reading 'call')
I am trying to create the most basic webpack module federation proof of concept example.
Webpack config in the host app:
...
plugins: [
new ModuleFederationPlugin({
name: "hostApp&...
16
votes
2
answers
2k
views
Tree shaking of shared dependencies in webpack 5 module federation
I am working on an architecture for a dynamic dashboard with components fetched from different remote react bundles using webpack 5 module federation. I do have different libraries which are shared ...
15
votes
4
answers
16k
views
How to use Webpack Module Federation plugin with create-react-app without ejecting
Is there a way to use module federation using create-react-app without ejecting?
I want to convert my existing react applications(created using CRA) to micro-frontends.
15
votes
4
answers
19k
views
Serving styles and assets with Webpack 5 module federation
I've successfully implemented the relatively new webpack 5 module federation system in my Angular 11 app, so it can load modules remotely on-demand from another build.
One thing I've found nothing ...
14
votes
1
answer
9k
views
Mocking federated modules in host application for jest
Question is exactly same here in fact but has different context:
How to mock not installed npm package in jest?
I am part of a project where new Module Federation is used from webpack. Basically, I ...
12
votes
0
answers
2k
views
Deployable MFE using nextjs and module federation
does anyone has experience using Nextjs and module federation for creating the MFEs that can be deployable?
I can see there are some limitations and we'll lose SSR in that case like deploying micro ...
12
votes
0
answers
922
views
Does Webpack plugin for MicroFrontends support flutter web app be used as MicroFrontend inside angular app?
I have angular application which works independently. Also there is a flutter web build for a certain feature which runs independently. I would like to use the flutter web build as a micro frontend ...
11
votes
2
answers
11k
views
How does module federation choose which dependency version to use?
I've been playing around with this module federation example, where the setup is relatively straightforward - a host is consuming a module from a remote with a shared react dependency. When running ...
11
votes
0
answers
3k
views
Sharing AuthService data between shell & micro front end using module federation plugin - remote library
I have separate repositories for my shell & my microfrontends & I would like to share the auth service data between shell & microfrontends.
I have used below article "Step 5: Share a ...
10
votes
2
answers
6k
views
Module Federation, React, and Apollo 3 warnings
I'm building an app with micro-frontends using webpack 5's module federation plugin. Everything was fine until I started adding react hooks into my remote app. At that point I received errors about &...
10
votes
2
answers
4k
views
How do I share a MUI 5 theme across multiple Micro front ends using Module Federation
I currently have multiple React v17 apps which utilise Module Federation from Webpack 5. I would like for my MUI 5 theme to be shared across all of these micro frontends without having a there own ...