Skip to content

Build with WebWorkers seems broken #4085

@ogonkov

Description

@ogonkov

Describe the bug

I'm tried to get MF to work with WebWorkers, but got exception

TypeError: can't access property "remotes", __webpack_require__.federation.bundlerRuntime is undefined

Reproduction

https://github.com/ogonkov/module-federation-examples/tree/chore/worker_problem/worker-with-dynamic-import

Used Package Manager

pnpm

System Info

System:
    OS: macOS 15.6.1
    CPU: (12) arm64 Apple M3 Pro
    Memory: 4.30 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.19.2 - ~/.nvm/versions/node/v20.19.2/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.19.2/bin/yarn
    npm: 10.8.2 - ~/.nvm/versions/node/v20.19.2/bin/npm
    pnpm: 10.14.0 - ~/.nvm/versions/node/v20.19.2/bin/pnpm
  Browsers:
    Chrome: 140.0.7339.133
    Safari: 18.6

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions