Skip to content

The remote server itself doesn't work with moduleFederationPlugin #1

@Jinjiang

Description

@Jinjiang

It doesn't work if I import any thing like import React from 'react' in remote server

Error log in browser console:

index.esm-C366PSkt.js:891 Uncaught Error: [ Federation Runtime ]: Please call init first
    at error (index.esm-C366PSkt.js:891:8)
    at assert (index.esm-C366PSkt.js:884:18)
    at loadShare (index.esm-C366PSkt.js:3185:2)
    at loadSharedToRegistry (button-DHUhcYRc.js:7:17)
    at button-DHUhcYRc.js:23:7

Turning off the moduleFederationPlugin can make it back to normal.

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