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
Describe the bug
After installing a clean build of storybook html (following the instructions) and running yarn build-storybook a broken static build is rendered. The parent keeps opening an iframe inside an iframe inside an iframe and so on.
To Reproduce
Steps to reproduce the behavior:
npx -p @storybook/cli sb init -t html
yarn build-storybook
use serve or any other hosting option serve -s storybook-static
go to the local environment (default is localhost:5000)
enjoy the endless loading of iframes!
Expected behavior
I expect to see the same interface as I see when using the regular yarn storybook command.
System:
OS: MacOS
Device: Macbook Pro 2015
Browser: Firefox Dev Edition, Chrome and Safari respond the same
Framework: html
Addons: none, default install
Version: 4.1.11
Additional context
This is done in a default environment, without changes to the config.
SOLUTION
I think it has to do with "beautifying urls", which transform iframe.html to iframe which in turn just loads the default index.html file creating a loop. Make sure you either don't beautify URL's, or use a hosting solution that does not do this. The problem (as far as I can tell) is not within Storybook.
The text was updated successfully, but these errors were encountered:
@tmeasday I've tried, I also uploaded the complete output folder to a webserver (just to make sure its not just my machine). It keeps persisting. It is indeed a duplicate of #5269 but that was closed.
I just now did a deploy on Netlify and there it does work. My guess it is related to translating iframe.html to iframe (which loads the default index.html). I don't think Storybook can do anything about this since it is up to the serve(r) configuration.
Do you want me to add something to the FAQ in a PR? If not, let's close this.
Describe the bug
After installing a clean build of storybook html (following the instructions) and running
yarn build-storybook
a broken static build is rendered. The parent keeps opening an iframe inside an iframe inside an iframe and so on.To Reproduce
Steps to reproduce the behavior:
npx -p @storybook/cli sb init -t html
yarn build-storybook
serve -s storybook-static
localhost:5000
)Expected behavior
I expect to see the same interface as I see when using the regular
yarn storybook
command.System:
Additional context
This is done in a default environment, without changes to the config.
SOLUTION
I think it has to do with "beautifying urls", which transform
iframe.html
toiframe
which in turn just loads the defaultindex.html
file creating a loop. Make sure you either don't beautify URL's, or use a hosting solution that does not do this. The problem (as far as I can tell) is not within Storybook.The text was updated successfully, but these errors were encountered: