question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SB5 React Native multiple installation issues

See original GitHub issue

Describe the bug Installation with npx -p @storybook/cli sb init does three weird things:

  1. WARNING: We noticed you’re using the useBuiltIns option without declaring a core-js version”. Not a big deal I guess, but concerning.

  2. Please choose a version of “@storybook/react-native” from this list:” I’ve chosen the latest 5.1.0-alpha.13. After installation, this end up installed and in my package.json:

    "@storybook/react-native": "^5.0.5",
    "@storybook/addon-actions": "^5.0.5",
    "@storybook/addon-links": "^5.0.5",
    "@storybook/addons": "^5.0.5",

Not what I selected.

  1. Last and most troubling, when I run yarn run storybook or npm run storybook, all I get is:
/bin/sh: storybook: command not found

Indeed there is no storybook binary in /node_modules/.bin/

To Reproduce Run react-native init test cd test npx -p @storybook/cli sb init npm run storybook

Expected behavior To start storybook without any issues

System:

  • OS: MacOS
  • Device: Macbook Air 2018
  • Framework: React Native 0.59.1
  • Env: node v10.15.3, npm 6.4.1, yarn 1.15.2

Thanks for looking into this

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
daton89commented, May 9, 2019

I installed storybook with npx -p @storybook/cli sb init today…

as suggested from the the cli, i installed core-js@3, then the start script was not found.

but after installing @storybook/react-native-server and updating storybook script to `start-storybook -p 7111" i solved the problem

1reaction
EskelCzcommented, Mar 27, 2019

Oh, I missed the last instruction of the migration info. So I guess it’s fine, everyone with the same problem will find this thread. Just update the docs with the new command when it’s out of alpha. Thanks for your patience! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-date-picker null is not an object - You.com | The search ...
SB5 React Native multiple installation issues https://github.com/storybooks/storybook/issues/6253. /bin/sh: storybook: command not found. Open side panel.
Read more >
Problem encountered in installing react-native - Stack Overflow
This is a react-native installation issue: error Failed to install the app. Make sure you have the Android development environment set up: https ......
Read more >
tsconfig.json · c381dca73b7cb6be3b46226850db12c5e03d96f3 ...
"checkJs": true, /* Report errors in .js files. */. 12. // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */....
Read more >
react-native-multi-options - npm
A simple select component for React Native.. Latest version: 0.2.12, last published: 8 days ago. Start using react-native-multi-options in ...
Read more >
https://www.ncbi.nlm.nih.gov/books/NBK581903/bin/D...
Test takers react to target letters on a computer screen and CPT II measures Response Time, Errors, Change in Reaction Time Speed and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found