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.

init new project error with React-Native 0.43-rc4

See original GitHub issue

NPM 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:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start --reset-cache." UserInfo={stack=( { file = “”; lineNumber = 0; methodName = “”; } ), NSLocalizedDescription=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:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start --reset-cache.} 2017-03-22 18:24:09.978 [fatal][tid:main] 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:

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset packager cache: rm -fr $TMPDIR/react-* or npm start --reset-cache.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:16
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

26reactions
ncuillerycommented, Mar 23, 2017

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.jsonand re-install the dependencies.

It’s a serious issue though, because all existing projects using 0.43-rc* are concerned.

4reactions
dcp12345678commented, Mar 29, 2017

The solution suggested by ncuillery did not work for me. I still get same “No bundle url present” error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

init new project error with React-Native 0.43-rc4 – Fantas…hit
NPM 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.
Read more >

github_iconTop Related Medium Post

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