module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.47k stars 224 forks source link

web worker error in remote #3069

Open mrcwl opened 1 week ago

mrcwl commented 1 week ago

Describe the bug

I get web worker error when i use nested remote modules or set rspack.output.publicPath to auto.

The module structure is host->remote-remote1 image

image

If you remove the marked configuration it will work fine

Reproduction

https://github.com/mrcwl/mf-error-test

Used Package Manager

npm

System Info

System:
    OS: macOS 15.0.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 4.79 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.20.2 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 8.19.4 - /usr/local/bin/npm
    pnpm: 8.15.4 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 129.0.6668.100
    Safari: 18.0.1

Validations

ScriptedAlchemy commented 1 week ago

Does the same issue happen with a webpack build?