Unable to load source map: RCTDataManager module is not available
After upgrading to react-native 0.7.0, i encounter this error. Anyone else encounter this too?
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:
- Didn't do anything with the project (just kept the original
"Welcome to React Native!"message) - Didn't
requireany other modules in the project - Didn't mess with IOS project files
- 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
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: worked like a charm, and it's better than nothing. Thanks for the (clear) advice.
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.
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.