react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Unable to load source map: RCTDataManager module is not available

Open steve-ng opened this issue 11 years ago • 5 comments

After upgrading to react-native 0.7.0, i encounter this error. Anyone else encounter this too?

steve-ng avatar Jul 12 '15 04:07 steve-ng

I've noticed the same after upgrading from React Native 0.5.0 to 0.7.1, but also other error messages that I believe are related. So i started another React Native project from scratch given the following circumstances:

  1. Didn't do anything with the project (just kept the original "Welcome to React Native!" message)
  2. Didn't require any other modules in the project
  3. Didn't mess with IOS project files
  4. Shutdown and restarted all related applications (Xcode, terminals, and chrome browser) after install each module.

Below are the following error message:

"Cannot read property 'None' of undefined", "undefined is not an object (evaluating 'RCTScrollViewConsts.KeyboardDismissMode.None')

Oddly enough, when turning on Chrome Debugger, the UI would switch to the following error message: "Cannot read property 'None' of undefined".

The React Native modules that were leading to these issues include: react-native-carousel, react-native-device-display, react-native-viewport

albertwchang avatar Jul 13 '15 01:07 albertwchang

If you look at the package.json of react-native-device-display and react-native-viewport, you'll see that they require older versions of react-native (and they require it as a dependency, rather than a peerDependency).

To make packages like that work when you want to use newer versions of react, what I've done is remove YOURPROJECT/node_modules/SOMEDEP/node_modules/react-native. If you look in there you'll see an older version of react-native.

I doubt it's the best solution, but it worked for the quick and dirty upgrade

mikesurowiec avatar Jul 13 '15 16:07 mikesurowiec

@mikesurowiec: worked like a charm, and it's better than nothing. Thanks for the (clear) advice.

albertwchang avatar Jul 14 '15 00:07 albertwchang

I only have a single dependency in YOURPROJECT/node_modules, and it's react-native. There's no other dependencies or instances of react-native in my node_modules directory, and I'm still getting this error.

slooker avatar Jul 14 '15 22:07 slooker

Does this still happen to you on the latest version? Try restarting the packager, doing a clean recompile, etc. Also, try creating a new project with react-native init NewProj and copy your JS and other files into it.

If none of that fixes it, please re-open.

sahrens avatar Jul 15 '15 17:07 sahrens