Skip to content

Webpack Module Federation Circular Dependency Causes .get() to Remain Pending #4410

@21duxue

Description

@21duxue

In the webpack module federation, there is a circular dependency between two remote modules, which causes the.get() function to remain in pending. Besides having the user break the circular dependency, are there any other solutions? Seeking guidance!!

In everyone's code, it was directly imported and used. Eventually, it was replaced by the webpack plugin with the "promise new promise" method

A->B
B->A

window.A.get() => pendding

window.B.get() => pendding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions