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.

React Native 0.58 crashing from node core module reference in dependency

See original GitHub issue

Describe the bug It looks like safe-eval, a module required by telejson, requires vm, which is a core node module and can’t be used in the metro bundler without some kind of polyfill, so maybe a different library should be used there or telejson should be modified

To Reproduce Steps to reproduce the behavior: set up a new storybook project in a brand new react native project npx -p @storybook/cli@next sb init

Expected behavior the default ui setup to be there and working

Screenshots screen shot 2019-01-27 at 12 08 36 am

Code snippets The offending file: screen shot 2019-01-27 at 12 16 39 am

System:

  • OS: MacOS
  • Device: MacBook Pro 2015
  • Framework: react-native
  • Version: 5.0.0-alpha.9

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
shilmancommented, Mar 22, 2019

We’ve released a brand new @storybook/react-native with a bunch of core improvements. It’s available in the latest 5.1-alpha on next and has been verified by several RN users on their existing apps. It should fix a bunch of compatibility issues, especially if you’re using the web server feature. Please give it a try and comment here if it fixes your problem. Migration instructions available here: https://github.com/storybooks/storybook/blob/next/MIGRATION.md#react-native-server

@ryanmagoon @tsvetan-ganev @Aleksefo @hugofovargue @nemonweb @FLGMwt @thamo01 @loic-lopez @stale

1reaction
nemonwebcommented, Mar 1, 2019

Because of this bug it is not possible to use storybook 5.x with react native. Fix it please

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native 0.58 crashing from node core module ... - GitHub
Describe the bug It looks like safe-eval, a module required by telejson, requires vm, which is a core node module and can't be...
Read more >
Ask Question - Stack Overflow
Step 1: Delete node modules folder and package-lock.json file. Step 2: Change react-native version in package.json dependencies to 0.58.6.
Read more >
react-native | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
react-native-community/datetimepicker - npm
This repository was moved out of the react native community GH organization, in accordance to this proposal. The module is still published ...
Read more >
React Native Upgrade Helper
React Native 0.58 is the first release of 2019, it includes work for modernizing and strengthening flow types for core components and numerous...
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