You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initial request for the remoteEntry.js file succeeds, but it fails when trying to load the dependencies of the remote app. It seems those requests are issued towards the host app port (3000) instead of the remote app port (3001). The network request responds with the html of the host app.
I've checked the code and there is a comment about that being intended though, so that HMR works, but I'm not sure why it then works fine if we remove the server base path of /foo on the remote app (the request is then made to the correct port of 3001).
I've also tried setting the dev client port explicitly, but it still fails.
danantal
changed the title
[Bug]:
[Bug]: Module Federation - Remote app fails to load when running with a base path.
Oct 21, 2024
danantal
changed the title
[Bug]: Module Federation - Remote app fails to load when running with a base path.
[Bug]: Module Federation - Remote app fails to load when running with a base path
Oct 21, 2024
Version
System:
OS: Windows 11 10.0.22631
CPU: (32) x64 AMD Ryzen 9 3950X 16-Core Processor
Memory: 43.63 GB / 63.92 GB
Browsers:
Edge: Chromium (129.0.2792.89)
Internet Explorer: 11.0.22621.3527
npmPackages:
@rsbuild/core: ^1.0.16 => 1.0.16
@rsbuild/plugin-react: ^1.0.5 => 1.0.5
Details
I have a setup with 2 apps:
/foo
Trying to configure the host app to consume the remote app with the following config:
The initial request for the
remoteEntry.js
file succeeds, but it fails when trying to load the dependencies of theremote
app. It seems those requests are issued towards the host app port (3000) instead of the remote app port (3001). The network request responds with the html of the host app.I've checked the code and there is a comment about that being intended though, so that HMR works, but I'm not sure why it then works fine if we remove the server base path of
/foo
on the remote app (the request is then made to the correct port of 3001).I've also tried setting the dev client port explicitly, but it still fails.
Reproduce link
https://github.com/danantal/rsbuild-demo
Reproduce Steps
Expected: page loads correctly
Actual: page fails to load due to incorrect request for the deps of remote app.
The text was updated successfully, but these errors were encountered: