Storybook: Story list is empty when loading the storybook inside an IFRAME

Created on 19 Oct 2016  路  7Comments  路  Source: storybookjs/storybook

I am using the HTML Publisher Plugin from Jenkins to store a static compiled storybook. The HTML Publisher Plugin will load the storybook index.html inside an IFRAME.

It seems that when a storybook is loaded inside the iframe, the available stories are not shown inside the left menu.

This is image showing the problem:
image

You can notice that the first story is loaded in the right side of the screen, but the list is empty.

I recently upgrade to the latest version. In v1.x this problem did not exist.

All 7 comments

Is there any error on the console?

I think it has to do with the way the post msg channel is setup. I'll check this one out

There is no error on the console.

Hi @dompuiu, it should work from v2.30.1

I'm using the latest version, but still can't see stories when iframed. The page hosting the iframe is served from a different origin, if that's at all helpful.

Thanks @rexxars, I'll check it again

Submitted a PR to storybook-channel-postmsg which fixes this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

levithomason picture levithomason  路  3Comments

sakulstra picture sakulstra  路  3Comments

shilman picture shilman  路  3Comments

rpersaud picture rpersaud  路  3Comments

shilman picture shilman  路  3Comments