-
-
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
Loading babel-polyfill for IE11 #213
Comments
I downloaded the repo and used If I add It also works if I instead change the
Can anyone else confirm if Storybook works for them in IE11 without one of these changes? Also, for some reason, I needed to
Not sure if this is just because my project is using @arunoda Would you accept a PR for adding Thanks! |
Yes. PR on this would be great if it doesn't work on IE11. @mnmtanish could you help @mindjuice on this. |
Sorry, I'm not clear if you want me to submit a PR first, or if you are first going to try to verify that you have the same issue on IE11. If you'd like a PR, I'll get that done ASAP, but I'm wondering if you have a preference over the two ideas I suggested above (adding an Thanks. |
Pushed 2 PRs #237 and #238 one with
|
We can also conditionally enable the shim with a command line flag
|
Sweet! Thanks! The Out of curiosity, is the (EDIT: Maybe I misread... I thought "We can..." meant "Now we can", but it seems more likely that it meant "If we implement it, we can") |
Just released |
Thanks @mnmtanish. It's basically working now, although I see the following warning in the console in IE11:
|
I'll check it out. Thanks for reporting these errors :) everyone here use macs. |
I'm a Mac guy too actually, but my coworker is on Windows. The bad news is that it doesn't work under Microsoft Edge either, even with the polyfill. The story names list in the sidebar doesn't appear, and clicking on a button tied to a Storybook action like I installed Edge in a Windows 10 VM in VMWare Fusion to try and help debug this, but Edge crashes whenever I click anything! It might require a native Windows machine to debug this. |
I'm using Microsoft's RemoteIE. |
Thanks, RemoteIE worked for me too. I used Storybook is definitely not working under Edge for me either (matching my coworker's experience that I described two comments above). I don't have time to debug right now, but will try to find some time soon. |
Latest works in IE11 for me. |
Still facing the same bug in IE11. airbnb-js-shims doesn't contain Symbol polyfill btw (checked this just now with browserify). |
I'm seeing this issue as well. I'm running Storybook 2.35.3 and everything works correctly in Chrome, Firefox, and Edge (on Windows 10), but actions do not work in IE11. (The components under test are being rendered correctly though.) If I try to dispatch an action, I see this in the console:
|
@kaiyoma Are you including
It wraps the EDIT: Forgot some of the details from before, but it's pretty clear there is some polyfill issue with IE11 and Symbols. Not sure what storybook is including at the moment (no time to look right now). |
My understanding from one of the above comments is that this should "just work" now:
So no, I'm not importing |
i'm facing the same issu with 'symbol undefiend' |
The red error |
|
Yeah that'd be it, another option would be to add your entrypoint in a custom webpack config. |
In fact, it can be be as simple as
UPD: looks like we don't merge entry points so it can't =( So just import |
I just tried these suggestions and it's still not working for me. I installed |
Ok, looks like it should affect storybooks UI, not the stories itself. So you should |
A question to everybody getting the |
I'm not using any addons and I don't have |
@kaiyoma just create a file called |
If I do that, the action logger panel at the bottom of the screen disappears entirely. |
yeah, you should manually include the default addons:
|
@kaiyoma which version of |
I realized I was actually still on the old Here's my
Any ideas? |
clean the entire node modules and all lock files, make sure everything storybook related is at the latest version and install anew. make sure you're importing the right addons in your stories. |
Yup, that did it! Thanks for all your help guys! 😄 |
Happy to help @kaiyoma ! |
I was getting a |
I have my first component working in Storybook, and everything is fine on Chrome and Firefox, but in IE11, I get the error
Object doesn't support property or method 'find'
when Storybook is trying to find a story in an array.This seems to be because
Array.find()
needs to be polyfilled.The solution should be to add
import 'babel-polyfill;
to the entrypoint, but I can't seem to find the right place to put this with Storybook (i.e., what constitutes the "entrypoint").I've tried adding it to my component's
index.js
, as well as at the top of each of my story files, and also in.storybook/config.js
, but I still get the same error in IE11. I also tried addingmodule.entry=['babel-polyfill']
in thewebpack.config.js
, with no difference.Any other suggestions?
I'm using
start-storybook -p 9001 -s ./stories
rather than a customserver.js
if that matters.The text was updated successfully, but these errors were encountered: