Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

56
Vistas
ModuleFederationPlugin and webpack: Why did I try to download /XXXX/main.js in case of incorrect routing?

I'm trying to better understand Webpack and MFE in general. I have built a react container with 2 react modules. It works very well so far. I haven't finished implementing all the routing, but every time I write something in the URL like:

http://localhost:4230/trainees/add

The browser tries to search for new resources: recovering main.js

here is my MFE configuration:

 new ModuleFederationPlugin( {
 name : 'container',
 remotes : {
 trainer : 'trainer@http://localhost:4230/remoteEntry.js',
 trainee : 'trainee@http://localhost:4220/remoteEntry.js'
 },
 shared: ['react', 'react-dom', {
 'react-router-dom': {
 singleton: true
 }
 }],
 })

If I try to go to the same URL using <Nav> the code, it works...

Is it normal behavior?

Thank you

over 2 years ago · Carlos Garzón Colorado
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda