storybook: Cannot get /iframe.html
Describe the bug
I’m currently running into this issue when I run storybook locally. Storybook loads but I see the message Cannot GET /iframe.html in the window where the component should render.
Request URL: http://localhost:9009/iframe.html?id=*
Request Method: GET
Status Code: 404 Not Found
Remote Address: [::1]:9009
Referrer Policy: no-referrer-when-downgrade
Packages I’m using
"@storybook/addon-actions": "5.0.1",
"@storybook/addon-links": "5.0.1",
"@storybook/addons": "5.0.1",
"@storybook/react": "5.1.0-alpha.2"
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 33
- Comments: 16 (6 by maintainers)
I ran into this issue as well after migrating from extend mode to full control mode. Fixed it by changing the
config.pluginsoption fromto
It may be worth updating the docs at https://storybook.js.org/docs/configurations/custom-webpack-config/#full-control-mode to preserve the
pluginsconfig array as well@yairEO @lauterry Yeah well, you’re both REMOVING all webpack plugins, including the HtmlWebpackplugin, so it would make sense for there to be no html outputted.
For me the problem was that the output path was the same as the configuration path. Storybook clears the output path before build.
@ndelangen - Thanks! you saved me.
I wasn’t aware there were any default plugins in the first place! who knew…
In my case
webpack.config.jshad a lineconfig.output.publicPath = '/storybook/';but/storybookdidn’t exist. Removing that line fixed the problem.For me this turned out to be a path issue - the git repo created a folder called Design%20System - removing the encoded space to just DesignSystem fixed this for me.