-
-
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
Broken with [email protected] due to packager (local-cli) API change #4179
Comments
I'm having this issue too. Is the
part what's causing this? |
Getting the same error. |
This worked for me facebook/react-native#20876 |
@jacquesdev mind providing more detail on the steps you took? I was able to get a project to build correctly using storybook v4.0.0-alpha.21, |
@cball I am in the same situation as you. I can get things to build correctly with |
same issue ! |
Based on @jacquesdev comment, I followed this recommandation. I got rid of the error by adding those two dependencies:
However storybooks' packager is still not starting despite |
@griable +1 |
1 similar comment
@griable +1 |
I have the same issue with a fresh react-native app. As @griable said on changing |
@K-eo If you run storybook with the I was able to get it working that way, so hopefully it will work ok for you too... |
Hello everyone, Then use
And somewhere in your app (a separate screen, admin panel, anything) render the StorybookUIRoot
This should help. Sorry that something is not working, we will update the docs explaining the issue. I saw your comment @robwalkerco, just wanted to write a message so people would know that we know about this issue. |
@robwalkerco @Gongreg |
Hmm I have followed these instructions (ie. I have appended the storybook script command in package.json with --skip-packager, and inserted the Storybook component in my app) and am still getting the same issue ( |
@sinewave440hz |
Sorry, my mistake. I re-read the thread and realised I had missed upgrading the babel packages. All up and running now, thanks. (I only seemed to need the bridge: This got me up and running as I said, but hasn't got me up and running with typescript. That should be a new, different issue, as it straddles the existing ones really. |
If you don't want to include StorybookUI in your main app and want to continue to use the old standalone behavior, change the npm script to: "storybook": "storybook start -p 7007 --skip-packager | react-native start --projectRoot storybook", |
@petrbela, you are completely correct, this is what we will suggest for people who want to use old behaviour. |
Thanks @petrbela , your solution worked for me, Storybook now starts and can be used on device and simulator. Anyway I can't make it work from the browser (which is the only solution if you use
And I have this warning just before :
Anyone has an idea what causes this error ? |
I found my problem. I had forgotten to change |
I have followed the instructions here and resolved the metro bundler error, as well as upgraded babel and storybook packages. Stuck on
Anybody else see this error? |
I've done what @petrbela suggested to run storybook standalone and updated The server starts fine now but when I try to run |
I had this problem and I solved it by making this change in
If it works, you can use I had read this solution but I can't remember where ! |
@chawax Thank you! Looks like
|
@ndelangen, What do we do with this task? Do we close it after 4.0? |
@petrbela your trick does not work with a version By looking at the source, it seems like the Maybe that should be mentioned in your comment with the workaround :) |
v4.0 is being released today. With it the packager is removed from storybook. You can read more about v4 here :) |
@Gongreg the above link is broken. could you please update to the right one https://medium.com/storybookjs/whats-new-in-storybook-4-0-react-native-741c7f481bbb. Thank you. |
Thanks @princiya, fixed. |
I tried all the solutions above this is the only solution that solved my problem :
Reference (here)[https://github.com//issues/3897] |
If you are reporting a bug or requesting support, start here:
Bug or support request summary
Bug
Steps to reproduce
On a fresh project (
react-native init
):And another error after that:
Looks like this commit is the culprit:
facebook/react-native@c5ce762#diff-4a892a6b8856f0253e2de7094e585ae6
Please specify which version of Storybook and optionally any affected addons that you're running
Affected platforms
react-native
The text was updated successfully, but these errors were encountered: