-
-
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
getstorybook is failing on Windows #3529
Comments
Can you try updating storybook/cli to |
I'm also experiencing the exact same issue. Updating to 4.0.0-alpha.4 doesn't change anything. The problem code is found in
I'm not sure what the underlying issue is, but simply commenting out that code allowed me to install storybook and use it without any issues (so far). Affected platforms
|
|
@GeekMode Since you already looked into the code, can try changing
and see what get's logged when you run getstorybook on a fresh create-react-app? Personally I can't reproduce the error |
When I
That message has appears anytime I run yarn 1.6.0 with Node 10. When I
The next line, where that Buffer is passed to
|
The error is due to us trying to parse a |
Which is highly recommended. A buffer is not automatically a string and can be anything afaik. |
But it is just a warning. The issue is still the |
Found the bug. we're getting the stdout and stderr which are going to be outputs of The fix would be I'll have to test this on a windows machine tho |
That was my initial reaction as well and that's what I tried, but unfortunately I get the exact same error.
|
Finally found the bug. It's actually yarn that is causing the problem. #yarnpkg/yarn#5477. They have it already fixed but are waiting for the next release. Until then, if anyone runs into this issue, just change the following line in
to
Maybe downgrading to a previous release of yarn might do the trick too, but haven't tried that. |
Thank's for your investigation effort! Unfortunately I don't have installed yarn so shouldn't To prove it, I've changed |
Did it work before (try testing with |
So I messed around running I then ran the process a few times again while logging the error as I mentioned in #3529 (comment), because the original screenshot seemed like there was additional information being logged. In the end I found this error message by |
This is weird :( |
So from what I understand from all the comments is that there are two different issues atm, and please correct me if I'm wrong:
The first issue is something client-side and based on some quick Googling should happen frequently when running any
I tested this yesterday on my Windows machine and the installation of storybook (through npm) succeeds without any side effects, except that the whole The second problem, from as much as I could understand, is something storybook has no control over and could be considered to be fixed in the same way as the first issue. This is something yarn should take care of on their side, which is on its way. Personally, I think that it doesn't matter whether it is ignored/printed, as long at is doesn't block storybook from installing. |
Same issue, but the weird thing is that it works fine sometimes without trying any solutions listed above. The first time I ran
|
Sounds like some race condition or async issue imo. |
@fralonra I think this is in line with what I found in #3529 (comment):
You might be experiencing the same error as displayed in the screenshots in the first comment and in mine, but it's not for sure. There is a fix merged (#3563) that will ignore these warnings. Keep an eye out for it as it's likely some warning coming from your (package manger) side. |
@Keraito : after 2 hours of trying to fix the latest_version.js, to update my package.json and try every single tip i found about this isuue it still doesn't work for me :/ any help? does it work at least in an OSX environment ? |
Ah it worked now ! i had to try getstorybook many times ! weird ! |
Hey @Safa2222, the main reason that you're encountering the issue is due to a To resolve the issue you could either keep running |
Released as |
getstorybook fails on Windows
Simple setup to reproduce:
I've installed latest create-react-app (1.5.2) and ran getstorybook in the freshly created project folder. That's what's happening on Windows:
I've tried it several times (also w/ ejecting the cra) - it always fails at this point.
Steps to reproduce
Please specify which version of Storybook and optionally any affected addons that you're running
storybook/cli@3.4.3
Affected platforms
It's running fine on macOS - so it seems to be a Windows specific thing.
The text was updated successfully, but these errors were encountered: