utilities icon indicating copy to clipboard operation
utilities copied to clipboard

React Library with importRemote not loading the remoteEntry.js

Open ld185150 opened this issue 2 years ago • 0 comments

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

ld185150 avatar Oct 10 '23 09:10 ld185150