Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
YouTube Security VideosAndroid Police: Samsung is smashing records! #shorts #tech #phones(21.09.2026 um 13:55 Uhr)
YouTube Security Videosheise & c't: Bundesnetzagentur wollte diesen Futterautomaten verbieten(21.09.2026 um 13:53 Uhr)
YouTube Security VideosNeil Patel: Your Google Traffic Isn't An Asset It's A Loan #shorts(21.09.2026 um 14:05 Uhr)
Windows Tipps & SecurityF-14 A Tomcat Top Gun endlich als Revell Klemmbausteinmodell erhältlich(21.09.2026 um 14:27 Uhr)
Sichere ProgrammierungShow the Hand-Back Sample Before Approving an Agent Score(21.09.2026 um 14:15 Uhr)
Sichere ProgrammierungHybrid retrieval in one Postgres query: RRF over tsvector + pgvector(21.09.2026 um 14:15 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

How to load an MFE module from a shell app (Using Angular + Webpack + Module Federation)?

Hi everyone, I have question for you. Do you know how load an MFE (micro front end) remote app, as a module from a shell app? when I try to do so there is an infinite loop. and the module from the MFE does not show. Any tips or ideas on…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Hi everyone, I have question for you. Do you know how load an MFE (micro front end) remote app, as a module from a shell app? when I try to do so there is an infinite loop. and the module from the MFE does not show. Any tips or ideas on how to accomplish this issue? (Using Angular + Webpack + Module Federation)




// webpack.config.js--SHELL APP 

const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
const path = require("path");

module.exports = {
output: {
uniqueName: "portalWebApp",
publicPath: "auto",
scriptType: "text/javascript",
},
optimization: {
runtimeChunk: false,
},
resolve: {
alias: {},
},
module: {
rules: [{
test: /\.html$/,
use: ["html-loader"],
}, ],
},
experiments: {
outputModule: true,
},
plugins: [
new ModuleFederationPlugin({
// For remotes (please Add this 5 Line)
name: "portalWebApp",
filename: "remoteEntry.js",
remotes: {
astrPortFolioMasterWebApp: "astrPortFolioMasterWebApp@http://localhost:3002/remoteEntry.js",
mfe1: "mfe1@http://localhost:4001/remoteEntry.js",
},

shared: {
"@angular/core": {
singleton: true,
strictVersion: true,
eager: true
},
"@angular/common/": {
singleton: true,
strictVersion: true,
eager: true,
},
"@angular/router": {
singleton: true,
strictVersion: true,
eager: true,
}
// react: { singleton: true, eager: true },
// "react-dom": { singleton: true, eager: true },
},
}),
],
};

// webpack.config.js--SHELL APP--END

// SHELL APP - Route

import { loadRemoteModule } from '@angular-architects/module-federation';
import { WebComponentWrapper, WebComponentWrapperOptions } from '@angular-architects/module-federation-tools';
import { Routes } from '@angular/router';
import { MsalGuard } from '@azure/msal-angular';
// import { MsalGuard } from '@azure/msal-angular';
// import { UserNotAllowedComponent } from './layout/user-not-allowed/user-not-allowed.component';
// import { ServerErrorComponent } from './layout/server-error/server-error.component';

export const routes: Routes = [{
path: '',
pathMatch: 'full',
loadChildren: () =>
import('./content-providers/content-provider.module').then(
(m) => m.ContentProviderModule
),
canActivate: [MsalGuard],
},
{
path: 'mfe1',
loadChildren: () => {
return loadRemoteModule({
type: 'module',
remoteEntry: 'http://localhost:4001/remoteEntry.js',
exposedModule: './OrderModule',
})
.then((m) => m.OrderModule)
.catch((e) => console.log(e));
},
},
{
path: 'astrPortFolioMasterWebApp',
loadChildren: () => {
return loadRemoteModule({
type: 'module',
remoteEntry: 'http://localhost:3002/remoteEntry.js',
exposedModule: './astrPortFolioMasterWebAppModule',
})
.then((m) => m.astrPortFolioMasterWebAppModule)
.catch((e) => console.log(e));
},
},
{
path: 'angular1',
component: WebComponentWrapper,
data: {
remoteEntry: 'https://nice-grass-018f7d910.azurestaticapps.net/remoteEntry.js',
remoteName: 'angular1',
exposedModule: './web-components',
elementName: 'angular1-element',
}
as WebComponentWrapperOptions,
},
{
path: 'react1',
component: WebComponentWrapper,
data: {
remoteEntry: 'https://witty-wave-0a695f710.azurestaticapps.net/remoteEntry.js',
remoteName: 'react',
exposedModule: './web-components',
elementName: 'react-element',
}
as WebComponentWrapperOptions,
},
{
path: 'vue',
component: WebComponentWrapper,
data: {
remoteEntry: 'https://mango-field-0d0778c10.azurestaticapps.net/remoteEntry.js',
remoteName: 'vue',
exposedModule: './web-components',
elementName: 'vue-element',
}
as WebComponentWrapperOptions,
},
];


// SHELL APP - Route

// webpack.config.js--MFE / REMOTE APP

const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
const { shareAll, SharedMappings } = require("@angular-architects/module-federation/webpack");
const Path = require("path");
const sharedMappings = new SharedMappings();

sharedMappings.register(
Path.join(__dirname, 'tsconfig.json'), []
)
module.exports = {
output: {
uniqueName: "astrPortFolioMasterWebApp",
publicPath: "auto",
scriptType: "text/javascript",
},
optimization: {
runtimeChunk: false
},
resolve: {
alias: {
...sharedMappings.getAliases(),
}
},
experiments: {
outputModule: true
},
plugins: [
new ModuleFederationPlugin({

// For remotes (please Add this 5 Line)
name: "astrPortFolioMasterWebApp",
filename: "remoteEntry.js",
exposes: {
'./astrPortFolioMasterWebAppModule': './src/app/layout/layout.module.ts',
},

shared: {
"@angular/core": {
singleton: true,
strictVersion: true,
eager: true
},
"@angular/common/": {
singleton: true,
strictVersion: true,
eager: true
},
"@angular/router": {
singleton: true,
strictVersion: true,
eager: true
},
}
}),
sharedMappings.getPlugin()
]
};

// webpack.config.js--MFE / REMOTE APP - END

// MFE - Remote - Route

import { Routes } from '@angular/router';
import { MsalGuard } from '@azure/msal-angular';
import { UserNotAllowedComponent } from './layout/user-not-allowed/user-not-allowed.component';
import { ServerErrorComponent } from './layout/server-error/server-error.component';

export const routes: Routes = [
// {
// path: '',
// pathMatch: 'full',
// redirectTo: 'portfolio'
// },
{
path: 'portfolio',
loadChildren: () =>
import('./layout/layout.module').then((m) => m.MainLayoutModule),
canActivate: [MsalGuard]
},

{
path: 'usernotallowed',
component: UserNotAllowedComponent,
},

{
path: '**',
component: ServerErrorComponent,
},
];

// MFE - Remote - Route - END


Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten How to load an MFE module from a shell app (Using Angular + Webpack + Module Federation)?

Thematisch verwandte Begriffe: load, module, from, shell · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94097 | A vulnerability was determined in Netcore NBR200V2 1.3.241127.071246. Th…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick