Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module react-native/Libraries/Renderer/shims/ReactNativeBridgeEventPlugin #16840

Closed
milad1367 opened this issue Nov 15, 2017 · 21 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@milad1367
Copy link

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Steps to Reproduce

I started my project 2 months ago. my project worked correctly until I forced relaunch project(removed project files and git clone project from GitHub and npm install after npm start).
1.npm install or yarn install (Tested with both)
2.npm start or yarn start

Expected Behavior

I expected start project correctly.

Actual Behavior

1
2
3

also after run npm ls :
4

package.json

{
  "name": "sirin",
  "version": "0.1.0",
  "private": true,
  "devDependencies": {
    "jest-expo": "~20.0.0",
    "react-native-scripts": "1.2.1",
    "react-test-renderer": "16.0.0-alpha.12"
  },
  "main": "./node_modules/react-native-scripts/build/bin/crna-entry.js",
  "scripts": {
    "links": "react-native link",
    "start": "react-native-scripts start",
    "eject": "react-native-scripts eject",
    "android": "react-native-scripts android",
    "ios": "react-native-scripts ios",
    "test": "node node_modules/jest/bin/jest.js --watch"
  },
  "jest": {
    "preset": "jest-expo"
  },
  "rnpm": {
    "assets": [
      "src/assets/fonts"
    ]
  },
  "dependencies": {
    "art": "^0.10.1",
    "d3": "^4.10.2",
    "d3-array": "^1.2.1",
    "d3-path": "^1.0.5",
    "d3-shape": "^1.2.0",
    "expo": "^20.1.3",
    "prop-types": "^15.5.10",
    "react": "16.0.0-alpha.12",
    "react-native": "^0.47.0",
    "react-native-chart": "^1.0.8-beta",
    "react-native-charts-wrapper": "^0.2.10",
    "react-native-circular-progress": "^0.0.8",
    "react-native-customisable-switch": "^0.1.0",
    "react-native-datepicker": "^1.6.0",
    "react-native-device-info": "^0.11.0",
    "react-native-drawer": "^2.5.0",
    "react-native-elements": "^0.16.0",
    "react-native-filesystem": "^0.1.0",
    "react-native-gesture-handler": "^1.0.0-alpha.31",
    "react-native-installed-apps": "0.0.6",
    "react-native-keyboard-aware-scroll-view": "^0.3.0",
    "react-native-material-switch": "^0.0.4",
    "react-native-modal": "^3.1.0",
    "react-native-pathjs-charts": "0.0.31",
    "react-native-progress": "^3.4.0",
    "react-native-progress-circle": "^2.0.0",
    "react-native-responsive-image": "^2.1.0",
    "react-native-shadow": "^1.2.1",
    "react-native-side-menu": "^1.0.2",
    "react-native-simple-toast": "^0.0.7",
    "react-native-snap-carousel": "^3.2.2",
    "react-native-svg": "^5.4.1",
    "react-native-svg-image": "^2.0.0",
    "react-native-svg-uri": "^1.2.1",
    "react-native-switch": "^1.1.0",
    "react-native-vector-icons": "^4.3.0",
    "react-navigation": "^1.0.0-beta.11",
    "redux-thunk": "^2.2.0"
  }
}

Reproducible Demo

I cannot be launched project so I cannot show a demo.
I think is the problems of GestureHandler.js but I cannot solve it.
I tested project with new versions (react,react-native, expo) problems solved.but I cannot update those versions because the UI components will be broken.

@bakhtiararifinid
Copy link

i have similar problem on expo sdkVersion 20.0.0

@Listor
Copy link

Listor commented Nov 15, 2017

same here

"react": "16.0.0-alpha.12",
"react-native": "^0.47.0",
 sdk 20.0.0

@luklapp
Copy link

luklapp commented Nov 16, 2017

It seems to work after downgrading react-native-gesture-handler. I used the latest version of expo/react-native-gesture-handler.

In package.json:

"dependencies": {
    "react-native-gesture-handler": "git://github.com/expo/react-native-gesture-handler#db4222870a6664dd7f7215bd6c9639a6a7dd7da9",
}

@milad1367
Copy link
Author

i added this but not worked.

@luklapp
Copy link

luklapp commented Nov 16, 2017

@milad1367 Try to install all dependencies again and clear the cache:

rm -rf ./node_modules
rm -rf $TMPDIR/react-*
npm install
npm start -- --reset-cache (or click "Restart" if you use Expo XDE)

@Listor
Copy link

Listor commented Nov 17, 2017

did all the above but it is still not working. since the dependencie is in the expo dep itself removing node_modules will remove the change to the package.json won't it ?

so how is this supposed to work or what am i missing ?

@luklapp
Copy link

luklapp commented Nov 17, 2017

Maybe try to update to Expo v22.0.0 or latest (v23.0.0), looks like the dependency is fixed there!

@Listor
Copy link

Listor commented Nov 17, 2017

switching to expo 22 works since there is no sdk for version 23 yet. thx luklapp

@luklapp
Copy link

luklapp commented Nov 17, 2017

@Listor: Expo 23 was just released today! :)

https://blog.expo.io/expo-sdk-v23-0-0-is-now-available-be0a8c655414

@Listor
Copy link

Listor commented Nov 17, 2017

oh weird and nice at the same time :D cause it wouldn't let me work with sdk 23 got an error with it saying that the latest possible was 22. will give it a shot later but since it is working right now i don't want to change anything ;) maybe something overlapped and i was too quick

@milad1367
Copy link
Author

@luklapp: I did, but not solved. Someone help me.customer waiting for me and I cannot update the project to SDK 23 . I'm crazy.

@milad1367
Copy link
Author

milad1367 commented Nov 17, 2017

oh-oh, I solved it.i added react-native-gesture-handler1.0.0-alpha.27.

@luklapp
Copy link

luklapp commented Nov 17, 2017

@Listor: You have to update the Expo Client on your phone, otherwise it won't work with 23.0.0 ;)

@milad1367
Copy link
Author

i added react-native-gesture-handler1.0.0-alpha.23 and everything solved!

@simjoh
Copy link

simjoh commented Nov 21, 2017

I solved this as
npm uninstall react-native-gesture-handler
npm install -save react-native-gesture-handler@1.0.0-alpha.27

@sohaibjaved44
Copy link

sohaibjaved44 commented Dec 5, 2017

It didn't work for me with npm install --save react-native-gesture-handler@1.0.0-alpha.27, I have tried 23 to 29 all but no luck with my react-native starter kit. struggling to find out the compatible one.

@murrayrj
Copy link

screen shot 2018-08-25 at 00 30 58
I'm still getting this issue with the newer version of RN. This is a link to my package.json and repo for anyone to test and help: https://github.com/murrayrj/React-Native-CRNA-Expo-Starter/blob/master/package.json

@sw00d
Copy link

sw00d commented Oct 21, 2018

I'm still getting this error after 3 days of scouring the web for answers. It is the same exact error as murrayrj above. Any new solutions here?

@milad1367
Copy link
Author

you have to add react-native-gesture-handler1.0.0-alpha.23

@sw00d
Copy link

sw00d commented Oct 23, 2018

Still not working. Which expo SDK are you working with?

@SchulzWill
Copy link

Having problems with this too.
error

@facebook facebook locked as resolved and limited conversation to collaborators Nov 17, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

10 participants