web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
8.16k stars 485 forks source link

[Bug]: web worker error in host #6968

Open mrcwl opened 1 week ago

mrcwl commented 1 week ago

System Info

System: OS: macOS 14.5 CPU: (10) arm64 Apple M1 Max Memory: 37.56 GB / 64.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm pnpm: 8.15.4 - /usr/local/bin/pnpm Browsers: Chrome: 126.0.6478.127 Safari: 17.5

Details

image

i get some error when i use web worker in host

Reproduce link

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

Reproduce Steps

1.Run 'pnpm run dev' in remote 2.Run 'pnpm run dev' in host 3.Open http://localhost:3000

xc2 commented 4 days ago

Also tracked in https://github.com/module-federation/core/issues/2675