React Native 0.58 crashing from node core module reference in dependency
See original GitHub issueDescribe 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
Code snippets
The offending file:
System:
- OS: MacOS
- Device: MacBook Pro 2015
- Framework: react-native
- Version: 5.0.0-alpha.9
Issue Analytics
- State:
- Created 5 years ago
- Reactions:7
- Comments:10 (4 by maintainers)
Top 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-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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’ve released a brand new
@storybook/react-native
with a bunch of core improvements. It’s available in the latest5.1-alpha
onnext
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
Because of this bug it is not possible to use storybook 5.x with react native. Fix it please