init new project error with React-Native 0.43-rc4
See original GitHub issueNPM version: 4.4.1 Xcode version: 8.2 (8C38) React Native version: 0.43-rc1~4 Platform: iOS Operating System: MacOS os x EI Capitan
react-native 0.42.3 no problem.
react-native init --version=“0.43.0-rc.4” FlatListTest4
error message:
2017-03-22 18:24:09.965 [warn][tid:NSOperationQueue 0x618000030700 :: NSOperation 0x61800004f390 (QOS: DEFAULT)][RCTBatchedBridge.m:113] Failed to load source: Error Domain=JSServer Code=500 "Unable to resolve module react/lib/ReactComponentWithPureRenderMixin
from /Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react-native/Libraries/react-native/react-native-implementation.js
: Module does not exist in the module map or in these directories:
/Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react/lib
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset packager cache:
rm -fr $TMPDIR/react-*
ornpm start --reset-cache
." UserInfo={stack=( { file = “”; lineNumber = 0; methodName = “”; } ), NSLocalizedDescription=Unable to resolve modulereact/lib/ReactComponentWithPureRenderMixin
from/Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react-native/Libraries/react-native/react-native-implementation.js
: Module does not exist in the module map or in these directories: /Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react/lib
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset packager cache:
rm -fr $TMPDIR/react-*
ornpm start --reset-cache
.} 2017-03-22 18:24:09.978 [fatal][tid:main] Unable to resolve modulereact/lib/ReactComponentWithPureRenderMixin
from/Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react-native/Libraries/react-native/react-native-implementation.js
: Module does not exist in the module map or in these directories: /Users/zlk/Downloads/ReactNative/FlatListTest4/node_modules/react/lib
This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following:
- Clear watchman watches:
watchman watch-del-all
. - Delete the
node_modules
folder:rm -rf node_modules && npm install
. - Reset packager cache:
rm -fr $TMPDIR/react-*
ornpm start --reset-cache
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:16
- Comments:10 (6 by maintainers)
I confirm the problem.
It’s is due to the React version 16.0.0-alpha.5 published on NPM yesterday.
Fix your React version to ~16.0.0-alpha.4~ (EDIT: 16.0.0-alpha.3, my bad) in your
package.json
and re-install the dependencies.It’s a serious issue though, because all existing projects using 0.43-rc* are concerned.
The solution suggested by ncuillery did not work for me. I still get same “No bundle url present” error.