React Native version:
$ react-native info
info Fetching system and libraries information...
System:
OS: Linux 4.18 Ubuntu 18.04.2 LTS (Bionic Beaver)
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Memory: 1.58 GB / 15.39 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
Yarn: 1.16.0 - /usr/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
Steps To Reproduce
yarn global add react-native-cli
react-native init testproject --version 0.60.0
cd testproject && react-native run-android
- Project builds, but bundler doesn't stay open
BUILD SUCCESSFUL in 7s
27 actionable tasks: 26 executed, 1 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.testproject/.MainActivity }
user@computer:~/Documents/testproject$
yarn run metro build index.js -O index.android.bundle
Error: Unable to resolve module `warnOnce` from `/home/rob/Documents/testproject/node_modules/react-native/Libraries/react-native/react-native-implementation.js`: Module `warnOnce` does not exist in the Haste module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.
Describe what you expected to happen:
Project builds without error
Snack, code example, or link to a repository:
React Native version:
Steps To Reproduce
yarn global add react-native-clireact-native init testproject --version 0.60.0cd testproject && react-native run-androidyarn run metro build index.js -O index.android.bundleDescribe what you expected to happen:
Project builds without error
Snack, code example, or link to a repository: