Skip to content

"Remote Type Hints" is not working if we load MFEs at runtime . #22

@Palashd55

Description

@Palashd55

Remote type hints is working fine if I use build time integration of a particular MFE , now if I use run time integration and loads the MFE using "loadRemote" plugin in that case , @mf-types is not generating during building of the application as a result not getting the type support and build is failing, it's only getting generated if the mfe gets loaded in the UI , means suppose in my application, on clicking a button a MFE loads , now after clicking the button only @mf-types is getting generated not before that .

What I need to do if I want to get type support during building of the application for all those MFEs which I load during runtime using "loadRemote", is it possible ??

Pasting some screenshots below :

During build time

Image

After loading the MFE in UI , proper type support is showing .

Image

Posted in discussion for the same as well : module-federation/core#3723

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