You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: Uncaught TypeError: Failed to resolve module specifier "static/js/runtime~main.iframe.bundle.js". Relative references must start with either "/", "./", or "../".
I found that preview.ejs uses htmlWebpackPlugin to inject file names.
@lyj1994 This is by design to inject the entry to load the Storybook application. I think the issue is when module federation is configured. The assetsPrefix is changed from / to ``. Could you provide a minimal reproduction to address this issue?
rsbuild.config.ts
error:
Uncaught TypeError: Failed to resolve module specifier "static/js/runtime~main.iframe.bundle.js". Relative references must start with either "/", "./", or "../".
After delete moduleFederation:
I found that preview.ejs uses htmlWebpackPlugin to inject file names.
https://github.com/rspack-contrib/storybook-rsbuild/blob/main/packages/builder-rsbuild/templates/preview.ejs#L76
Only when moduleFederation is turned on will there be this problem.
The text was updated successfully, but these errors were encountered: