module-federation / utilities

Various Utilities for Module Federation
MIT License
37 stars 0 forks source link

React Library with importRemote not loading the remoteEntry.js #14

Open ld185150 opened 1 year ago

ld185150 commented 1 year ago

We build a container inside Nx Monorepo project as library . This container accepts the module federate component details(url,name ..) and load using importRemote library. This issue occurs only if the usage of importRemote is inside a Nx Monorepo and same library used in another project as npm dependency

issue: The importRemote always fails with error "Remote Extension Loading failed with error Error: Remote loaded successfully but <<Module>> could not be found! Verify that the name is correct in the Webpack configuration!"

image

workaround : add the remoteEntry.js as a script manually and call the importRemote . It works without any issues.

is there any fix for the same? TIA