web-infra-dev / rspack

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

[Bug]: web worker error in host #6968

Open mrcwl opened 4 months ago

mrcwl commented 4 months 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 months ago

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

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

dbuzinin commented 6 days ago

I have a similar problem when using @module-federation/enhanced/repack. There is no such problem with the plugin for the first version of module federation