Issues upgrading to react-native 0.49.3
Hey I've been trying to get some more insight into whats going on. All i can gather so far is that it seems to be this module, which is showing up some issues with the projects configuration when building for debug with react-native 0.49.3.
When i include this module and try to run:
react-native run-android
The app errors and displays multiple warnings of the following for multiple other packages:
Loading dependency graph...jest-haste-map: @providesModule naming collision:
Duplicate module name: TestJavaToJSReturnValuesModule
Paths: /projectdir/node_modules/react-native-keyboard-aware-scroll-view/node_modules/react-native/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js collides with /projectdir/node_modules/react-native-iphone-x-helper/node_modules/react-native/ReactAndroid/src/androidTest/js/TestJavaToJSReturnValuesModule.js
And ends up in throwing an error:
Bundling `index.js` [development, non-minified] 0.0% (0/1), failed.
error: bundling failed: ambiguous resolution: module `/projectdir/index.js` tries to require `react-native`, but there are several files providing this module. You can delete or fix them:
* `/projectdir/node_modules/react-native-iphone-x-helper/node_modules/react-native/package.json`
* `/projectdir/node_modules/react-native-keyboard-aware-scroll-view/node_modules/react-native/package.json`
* `/projectdir/node_modules/react-native/package.json`
If you have any ideas what could be causing this / if it is something that is being caused by this package please could you let me know.
Thank you for the work on the package it was working well when i was on .47 r-n.
EDIT Here is the package.json i'm working with.
{
"name": "projectdir",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.18.1",
"prop-types": "15.6.0",
"react": "16.0.0-beta.5",
"react-native": "0.49.3",
"react-native-ble-manager": "6.2.4",
"react-native-camera": "^0.10.0",
"react-native-fcm": "^10.0.3",
"react-native-keyboard-aware-scroll-view": "0.4.0",
"react-native-linear-gradient": "^2.3.0",
"react-native-maps": "0.17.1",
"react-native-splash-screen": "^3.0.1",
"react-native-swipe-list-view": "0.4.5",
"react-native-vector-icons": "4.4.2",
"react-navigation": "^1.0.0-beta.15",
"react-redux": "5.0.6",
"reconnecting-websocket": "^3.2.1",
"redux": "3.7.2",
"redux-action-buffer": "^1.1.0",
"redux-persist": "4.10.1",
"redux-saga": "0.16.0",
"sha.js": "2.4.9",
"styled-components": "2.2.1"
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0-beta.5"
},
"jest": {
"preset": "react-native"
}
}
Hi!
Sorry, I accidentally put react-native as a dependency in 0.4.0. Please update to 0.4.1.
Thanks!
Awesome it's all working now thanks!
i have this error any idea?
