Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Module Federation configuration not generating remoteEntry.js

I have a legacy app were we are trying to export some components with WP5 module-federation.

The plugin configuration is currently like this:

output: {
  filename: "[name].bundle.js",
},
plugins: [
  new ModuleFederationPlugin({
    name: "remote",
    filename: "remoteEntry.js",
    remotes: {},
    exposes: {
      "./TestExport": path.resolve(__dirname, "../src/TestExport"),
    },
    shared: {
      "react@17": {
        singleton: true,
          requiredVersion: deps.react,
        },
      },
    }
  ),
]

the webpack config file is in a config dir in the root folder, this is why we are exposing the component with path.resolve.

When compiling the code, the remoteEntry.js file is not generated and we can't import it in another application using module-federation.

I've tried creating an app and exporting something with module-federation and consuming it inside the legacy app and it worked, but the opposite doesn't work.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!