-
Notifications
You must be signed in to change notification settings - Fork 44
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
Port selection is incomplete #67
Comments
Running it as |
This is because of #46 by @loklaan. Our own argv parse is overriding storybook's parse of argv with these lines. The actual new port will be present in @loklaan I would appreciate if you could take a look at this since you have an use case of calling the |
Thanks for the investigation here @pksunkara! I think this can be categorised as a bug in storybook. The free-port logic should genuinely be happening after the port is resolved from both the argv and load options of storybook, rather than just against the port from argv... But by now, this unideal behaviour might be relied on by storybook users. I'd suggest opening an issue in storybook/storybook @bodograumann to discuss this too-eager free-port logic, and in the mean time you might just have to ensure port availability for yourself. |
Ok, so let me just sum up what is happening, because it took me some time to understand.
I will create a bug report with storybook, but there is already a possible solutions for us: We can use the environment variable
|
I have created a PR to fix this in Storybook. |
When the default storybook port
6006
is in use,storybook:serve
suggests using the next best port (6007
). Unfortunately when I confirm that new port, storybook is still started on port6006
and then fails.The text was updated successfully, but these errors were encountered: