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

[React Native 0.48]: Error: Redefinition of RCTMethodInfo

Open exentrich opened this issue 8 years ago • 12 comments

Build failed without this fix

exentrich avatar Sep 04 '17 13:09 exentrich

Confirmed working on my end. I am using @exentrich 's patch for now to get around this:

    "react-native-oauth": "git+ssh://[email protected]/exentrich/react-native-oauth#patch-1",

joncursi avatar Sep 11 '17 20:09 joncursi

can you accept this PR ?

Kottidev avatar Sep 20 '17 13:09 Kottidev

Experiencing same issue.

"react": "16.0.0-beta.5",
"react-native": "0.49.1",
"react-native-oauth": "2.2.0"

I'm using patch-package to fix this issue until this is released.

karlAlnebratt avatar Oct 06 '17 06:10 karlAlnebratt

The code modified in this PR isn't actually the problem. The error comes up because there are multiple versions of the react native headers in the search path - the older version exists, but isn't the one you are actually using.

Assuming you have a fairly standard setup, deleting node_modules/react-native and reinstalling should work - a lot of files got moved to different locations around 0.48, so the old ones may not get overwritten/removed with an upgrade.

tqc avatar Oct 08 '17 23:10 tqc

Is @tqc 's solution working for anyone els ? I'm only able to solve this with the patch.

mackenziemance avatar Oct 14 '17 19:10 mackenziemance

works for me! thanks @exentrich

alejandrosanabriav avatar Nov 23 '17 00:11 alejandrosanabriav

Working with 0.51.0 too. This should be merged a few days ago when I started debugging this one 💃

ice-chillios avatar Dec 19 '17 10:12 ice-chillios

Im running on react-native v0.51.0 and it doesnt work with current npm version. Please merge this pull request to fix it.

melihmucuk avatar Dec 21 '17 12:12 melihmucuk

I ran into this today, using the latest and greatest react-native code (^0.52.2). I can confirm that using the following solved the problem:

"react-native-oauth": "git+ssh://[email protected]/exentrich/react-native-oauth#patch-1",

mraible avatar Jan 29 '18 19:01 mraible

Can this PLEASE get merged. For crying out loud.

Compulsor-zz avatar Mar 19 '18 12:03 Compulsor-zz

We forked it and are using the patch mentioned above.

cranberyxl avatar Mar 19 '18 12:03 cranberyxl

This is still occurring and the only solution right now is to the use the forked patch. Is this going to be merged? Is there a better solution?

sb8244 avatar Jun 01 '18 14:06 sb8244

@auser Can you merge this in and cut a new version? Seems this is working for everyone and has been a problem for everyone

CapitanRedBeard avatar Jul 23 '18 23:07 CapitanRedBeard