core icon indicating copy to clipboard operation
core copied to clipboard

Federation Runtime API types not working as expected for `loadRemote`

Open pganster opened this issue 5 months ago • 0 comments

Describe the bug

According to the module federation guide, loadRemote should return the inferred types for the supplied remote, but it doesn't. The returned promise always resolve an unknown.

Reproduction

https://github.com/pganster/module-federation-runtime-api-type-prompts

Used Package Manager

yarn

System Info

System:
    OS: Linux 6.10 Arch Linux
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i9-11900H @ 2.50GHz
    Memory: 34.43 GB / 62.53 GB
    Container: Yes
    Shell: 5.2.32 - /bin/bash
  Binaries:
    Node: 18.16.1 - ~/.nvm/versions/node/v18.16.1/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v18.16.1/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.1/bin/npm
    pnpm: 8.9.2 - ~/.nvm/versions/node/v18.16.1/bin/pnpm

Validations

pganster avatar Sep 04 '24 15:09 pganster