-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Story is not set when running storybook server #4716
Comments
Seems like in v5 this should be fixed. |
We’ve released a brand new |
Hi @shilman, @benoitdion I am using version 5.1.3 of Here is the entire code with the problem |
Any updates on when this bug will be worked on, or what causing this bug? |
Ran into this problem as well. |
Seems like some additional issue was brought in with storybook v5. React Native server is now using common solution with other frameworks so it is a little more difficult to inspect it. |
I have the same issue, any update about this problem? |
I should have some time tomorrow to look into it. |
I'm running into this as well, happy to help with testing development versions or whatever else is helpful. On a general note: When running the storybook web server, should I be able to select stories and interact with them (e.g. setting texts in the UI using Am I misunderstanding how this is meant to work ? |
@z00m1n, if you use @storybook/addon-knobs you should see addons in web browser. |
Hello. I've tried playing with things around. I managed to get story selection working. But what became clear is that we have to update react-native code to support react-native-server properly. I hope to do that next week. The main issues are these:
|
Is this because someone of the new code started using hooks? |
The way the events are emitted has changed, we have some useless events being emitted from react native side and now storyStore is using storyId instead of kind + story. Also if you somehow call getStorybookUI multiple times the connection to server fails. |
Hey, I've created a PR which should solve the issue. Since we don't have automated tests for RN it will require some manual testing |
Thanks for that @Gongreg! 👍 |
Sorry, I can't seem to get things set up to test the PR. I'm stuck here: https://github.com/storybookjs/storybook/blob/next/CONTRIBUTING.md#2-link
|
@z00m1n, I guess the best way for you to test things out would be to insert new code inside your project node_modules and play with it. I know that it sound really silly, but it is difficult to test things out when react-native storybook is inside monorepo. If you want to run example project in storybook monorepo I can't help at the moment since I don't remember how to start it :/ I've tested the changes as much as I could. Both with and without onDeviceUI with server connected and without. Played around with knobs. All seem to work. If you can't get it to run, don't worry about it too much. In the future we will (I hope and I will try to add them) have e2e tests which will allow us be more confident with changes. |
same problem with @alexakasanjeev
|
@sophister, there is already a PR which solves the issue. |
@Gongreg which pr solves this problem? |
Few messages above: #7187 |
Boo-yah!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.32 containing PR #7187 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Great. We have common ground now. So did you apply the changes in #7234 to dist directories? |
Egads!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.33 containing PR #7234 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@erhanbicer, I've tested out 5.2.0-alpha.33, it does work for me. |
@Gongreg I upgraded to 5.2.0-alpha.33, and reinstalled it. result; Not successful. https://i.imgur.com/1ynQK3I.png rn version: 0.59.9 |
@erhanbicer don’t want to sound like a broken record, but clear async storage and reset the cache. |
@Gongreg |
Thanks. I will look into it tomorrow. I am sorry that it is taking so long to fix. I am just not getting any errors locally. |
Good luck :) |
Thank you for your effort @Gongreg ! I just got the warning in a fresh install here... Good to see that is almost over! |
Hey, I really don't like leaving broken things, so I investingated it more. I found why I wasn't getting the issue. We are using github.com/wix/react-native-navigation in our app and it initialises the components sooner than in the default app. Making a PR with fix now. |
Created a pr. I really really hope the last one. |
Sorry, not working. same error persists |
@erhanbicer, I think last PR is not released yet. Checking |
@erhanbicer, ETA 10 hours till release. |
Shiver me timbers!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.2.0-alpha.35 containing PR #7243 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
Please tell me that it is working now |
@Gongreg Yes, it worked. Thank you for your work. :) |
Doesn't seem to work here, same issue as before. Maybe I'm doing something wrong about my setup ?
(curious question BTW ;-))
--> Please open navigator and select a story to preview. on Simulator Is this the correct approach in general ? |
@z00m1n I think your issie is that you are running your code through tunnel in expo. |
@z00m1n also please upgrade |
@Gongreg: The stories do show up in the left pane and are selected as I select them in the Storybook UI in the Simulator, so AFAICT, connectivity is established. The main pane remains Welcome to storybook; in fact, I have actually never seen the main pane show any other contents.
Double-checked, refreshed, restarted, reviewed. The issue persists. |
@z00m1n I searched like 2 hours for that issue. I will copy and paste the error message to make everyones life simpler 🙂
|
Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.1.10 containing PR #7187 that references this issue. Upgrade today to try it out! |
To Reproduce
Steps to reproduce the behavior:
Behaviour
Storybook says please open navigator and select a story to preview.
Expected behavior
If user is running storybook server after the refresh the story should be the same as selected in the server.
The text was updated successfully, but these errors were encountered: