Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[React Native 0.48]: Error: Redefinition of RCTMethodInfo#157

Open
exentrich wants to merge 1 commit into
fullstackreact:master from
exentrich:patch-1
Open

[React Native 0.48]: Error: Redefinition of RCTMethodInfo #157
exentrich wants to merge 1 commit into
fullstackreact:master from
exentrich:patch-1

Conversation

@exentrich

@exentrich exentrich commented Sep 4, 2017

Copy link
Copy Markdown

Build failed without this fix

joncursi, Kottidev, abersager, karlAlnebratt, octohedron, 3p3r, markdaws, MateuszMxxxx, selarom-epilef, appfr3d, and 2 more reacted with thumbs up emoji

Copy link
Copy Markdown

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

 "react-native-oauth": "git+ssh://git@github.com/exentrich/react-native-oauth#patch-1",

Copy link
Copy Markdown
Contributor

can you accept this PR ?

Copy link
Copy Markdown

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.

tqc commented Oct 8, 2017

Copy link
Copy Markdown
Contributor

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.

mackenziemance commented Oct 14, 2017
edited
Loading

Copy link
Copy Markdown

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

bstankowski added a commit to bstankowski/react-native-oauth that referenced this pull request Nov 14, 2017

Copy link
Copy Markdown

works for me! thanks @exentrich

markdaws added a commit to markdaws/react-native-oauth that referenced this pull request Dec 7, 2017

Copy link
Copy Markdown

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

MateuszMxxxx, antonKalinin, cranberyxl, and sagar15bhavsar reacted with thumbs up emoji

mraible commented Jan 29, 2018

Copy link
Copy Markdown

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://git@github.com/exentrich/react-native-oauth#patch-1",

Copy link
Copy Markdown
Contributor

Can this PLEASE get merged. For crying out loud.

Copy link
Copy Markdown

We forked it and are using the patch mentioned above.

Compulsor-zz and negebauer reacted with heart emoji

sb8244 commented Jun 1, 2018

Copy link
Copy Markdown

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?

Copy link
Copy Markdown

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /