Skip to content

module federation remoteType #16236

@zhangHongEn

Description

@zhangHongEn

remoteType: "umd" error

Bug report

What is the current behavior?
error

If the current behavior is a bug, please provide the steps to reproduce.
https://stackblitz.com/edit/github-faw5we-nztzyp?file=app1%2Fwebpack.config.js

// app1
ModuleFederationPlugin({
remoteType: "umd",
remotes: {
"app2": "app2@http://localhost:3002/remoteEntry.js"
}
})
// app2
ModuleFederationPlugin({
name: "app2",
library: { type: "umd", name: "app2" }
})

What is the expected behavior?

Other relevant information:
webpack version: 5.74.0
Node.js version: 16.13.0
Operating System:
Additional tools:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions