webpack-module-federation Questions
4
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",
r...
Wordsmith asked 4/4, 2022 at 14:17
2
Solved
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...
Mame asked 20/2, 2022 at 19:8
1
Versions
vite-plugin-federation: ^1.3.5 (latest)
vite: ^5.1.0 (latest)
Steps to reproduce
Set up a host project using React, TypeScript, and Webpack.
Set up a remote project using Vite.
Conf...
Gemination asked 20/2, 2024 at 17:58
2
Unfortunately, my repro for this is in a complex proprietary project, so I will do my best to explain what is going on.
The closest example project to my use-case is this one: https://github.com/mo...
Honourable asked 27/12, 2020 at 15:15
5
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 ...
Vigor asked 16/12, 2021 at 22:48
4
Solved
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 ...
Hampshire asked 21/5, 2021 at 8:31
3
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: {
"mfe1": &q...
Rizo asked 19/2, 2021 at 10:25
0
I have 3 standalone React Apps hosted on 3 different domains and its using Keycloak for authentication the tokens are saved in the localstorage and during a REST API call axios use the tokens from ...
Collado asked 11/9, 2023 at 16:4
2
Solved
We are creating an MFE angular app using Module Federation WebPack 5 and ended up in an issue with the image source path. When we run the MFE alone, the image is loading(localhost:5000/assets/../an...
Antecedent asked 15/9, 2021 at 11:26
1
What is happening is that I am consuming a Micro front-end through module federation, but even using React.Lazy the bundle (remoteEntry) is loaded at the start of the application, without accessing...
Argilliferous asked 27/4, 2022 at 17:17
3
Solved
I have a shell and two MFE using NX module federation i.e.
agency(a) and
home(b).
which is hosted in a different subdomains.
I have a problem while trying to access.
My module-federation.manifest...
Bombacaceous asked 7/4, 2023 at 12:51
2
Solved
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 ...
Mussolini asked 17/8, 2022 at 16:3
3
Solved
I am trying react module federation. I have created two react apps(modulefederation1, modulefederation2) using create-react-app command. I am getting 'Uncaught Error: Shared module is not available...
Decathlon asked 17/5, 2022 at 12:15
2
I have set up a container app that consumes several remote apps. The issue is that I need the remote urls to be dynamic based on what environment they are in (Test, Dev, QA). As you can see my vehi...
Comptroller asked 31/8, 2022 at 21:59
1
I have an angular app where I decided to expose this component:
new ModuleFederationPlugin({
// For remotes (please adjust)
name: "app1",
filename: "app1.js",
exposes: {
...
Sulemasulf asked 24/6, 2021 at 9:59
3
Solved
I am working on a module-federation prototype with webpack5 and the CLI11, mostly as described here: https://www.angulararchitects.io/aktuelles/the-microfrontend-revolution-part-2-module-federation...
Gwendolyngweneth asked 4/5, 2021 at 14:4
2
I am trying to split a big monolith React app into micro-frontends using webpack module federation.
I already have the remote module deployed and working great when running the dev server locally, ...
Metabolism asked 31/3, 2021 at 12:50
2
I'm start using Micro Frontend with Module Federation Plugin . Now i faced with some issues on building routing between my applications. My Host application have route 3 mfe apps. Each of them have...
Koopman asked 27/6, 2022 at 8:5
1
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...
Italicize asked 26/2, 2021 at 14:4
1
I need a way to test a component in which two other components are lazy loaded.
We are using webpack module federation. So here ComponentOne and ComponentTwo are micro-frontends that are lazy loade...
Unteach asked 8/2, 2022 at 14:29
5
Solved
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 brows...
Soudan asked 29/12, 2020 at 16:55
3
The question about injecting Environment Variables after bundling with Webpack is already asked and answered.
The answer is always based on loading the updated Environment Variables inside the inde...
Cherida asked 1/12, 2021 at 10:42
0
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...
Skimp asked 11/7, 2022 at 21:22
1
NOTE: I tried accessing this directly in the browser https://localhost:5007/accom-web/dist/js/assets/browser-bundle/remoteEntryTest.js and I'm served the remoteEntryTest.js file.
This is my webco...
Spilt asked 31/5, 2022 at 15:38
2
I am trying to use micro frontend app from gatsby using Module Federation. When I try to call the component which is running at localhost:3001, getting CORS error. any idea how to solve this?
Here...
Blackbird asked 31/7, 2021 at 5:38
1 Next >
© 2022 - 2025 — McMap. All rights reserved.