Skip to content

@module-federation/runtime loadRemote - Cannot define property Symbol(mf_module_id) #2590

@nicotu01

Description

@nicotu01

Describe the bug

When loading remote, I have the error below :

Uncaught (in promise) TypeError: Cannot define property Symbol(mf_module_id), object is not extensible
    at Function.defineProperty (<anonymous>)
    at defineModuleId (index.esm.js:298:24)
    at index.esm.js:315:17
    at Module2.get (index.esm.js:292:37)

Reproduction

https://github.com/nicotu01/module-federation-runtime-error

Used Package Manager

npm

System Info

System:
    OS: Linux 5.15 Ubuntu 20.04.2 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz
    Memory: 10.27 GB / 15.46 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 18.20.1 - ~/.nvm/versions/node/v18.20.1/bin/node
    npm: 10.5.0 - ~/.nvm/versions/node/v18.20.1/bin/npm
    pnpm: 8.15.6 - ~/.nvm/versions/node/v18.20.1/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.160

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