-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internet Explorer 10 #298
Comments
Yes. We have seen similar issues. Looking forward to do a proper fix. |
I spent a bit of time looking at this today. From what I could find, there were 2 issues I ran into getting storybook to work in IE10. The first issue is that storybook uses webpack-hot-middleware which requires an eventSource polyfill for it to work in IE10. This is why when you view storybook in IE10, if you open up the dev console you'll see the following message: This can be resolved by npm installing eventsource-polyfill and requiring it in @kadira/storybook/dist/server/config/polyfills.js require('eventsource-polyfill'); IMO, storybook should add this to their polyfills.js file. The second issue is related to flexbox styles not having vendor prefixes for IE. Storybook uses @kadira/react-split-pane to create the layout used for storybook. This project uses CSS-in-JS to style the I tried seeing if I could add the vendor prefixed styles for flexbox to @kadira/react-split-pane but I didn't have much luck. I tried using postcss-js to create the vendor prefix but ran into issues mapping the output to react components. See this issue for more info. I also tried hard-coding the vendor-prefixes into storybooks src. This worked somewhat but there is some dynamic state based styling in @kadira/react-split-pane around when it applies flexbox styling that makes the hard-coded vendor-prefixes less than ideal. Here is a screenshot of what I got in IE10. I'm not sure what the core contributors on storybook think of supporting IE10, but those are two places that need work to get this working in that browser. |
More information here: |
If we could support, we can put it on the roadmap. |
I also experienced the problems above in IE11. The first problem (the EventSource error message) was resolved by installing and requiring eventsource-polyfill (as described by @bjankord). It looks like a solution for the second problem (the mangled display) is in tomkp/react-split-pane#207. Kadira/react-split-pane was a fork of this package, but since Storybook 3.0 the original package replaces the fork. After downgrading bowser to version 1.6.1 (npm install [email protected] --save --save-exact) my component is now rendered correctly. That said, I don't have IE10 installed so I can't confirm it also works under IE10. |
Solves an IE11 issue with react-split-pane, see storybookjs/storybook#298 (comment)
I'm not really sure that encouraging usage of browsers that don't get security updates is a good idea at all |
I'm going to close this, this remains unresolved. A PR is still welcome. |
Hi,
I have setup some stories and storybook is working fine for me locally on latest versions of Chrome and Firefox on Mac OS 10.11.3 ,however, none of my stories are showing when I try on Internet Explorer 10 on Windows 7. It also seems to be failing silently so no error messages in the console.
I've noticed that this demo is not working on ie10 either: https://kadira-samples.github.io/react-storybook-demo/
Is ie10 not supported? What is the browser support for storybook?
Thanks
The text was updated successfully, but these errors were encountered: