[Bug]: @modern-js/storybook
does not implement async boundary to use module federation remotes in storybook
#5614
Labels
Version
Details
I have a micro-frontend project which has several remotes that is implemented with
rsbuild
, to add the storybook I used the@modern-js/storybook
package, it works fine. I needed to import some modules from federated remotes, but it gives me this error:As I searched, it seems that it is related to the concept of async boundary that module federation relies on, and I think that the
@modern-js/storybook
need to implement async boundary to fix this issue.Note that I also found a package named
@module-federation/storybook-addon
by @fyodorovandrei.This plugin creates the bootstrap file at the compile time, as I saw the code here using the
webpack-virtual-modules
package:Reproduce link
Reproduce Steps
modern.config.ts
using ModuleFederationPlugin 1.5 imported from@rspack/core
:host
The text was updated successfully, but these errors were encountered: