question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with React Native >=0.7.1: More than one plugin attempted to publish the same registration name, `onError`

See original GitHub issue

The application won’t start due to the error, as in title: screen shot 2015-08-03 at 17 43 58

This is because react native RCTImageViewManager already publishes an event onError, for discussion see: https://github.com/facebook/react-native/issues/1952

I have a solution to this in my fork, will test it works and submit a PR to fix.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
KabirKangcommented, Dec 2, 2016

I am still getting this issue with the onError function for Android. I’m on a recent version of ReactNative. Anyone else getting this issue, or know what could cause it?

By the way, does npm install work or does it need to be git cloned?

2reactions
IjzerenHeincommented, Dec 6, 2016

@undef1ned Thanks for the feedback!

Finally found that it is indeed the onError event in react-native-youtube that is the culprit (in my app). I don’t quite know how to properly fix it, but after renaming the following instance of "onError" the error is gone and the app starts. Hope this helps anyone else in actually fixing the problem properly…

// YouTubeManager.java
@Override
	public
	@Nullable
	Map getExportedCustomDirectEventTypeConstants() {
		return MapBuilder.of(
				"error",
				MapBuilder.of("registrationName", "onError2"), // <-- renamed from onError to onError2
				"ready",
				MapBuilder.of("registrationName", "onReady"),
Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple errors after switching to 0.8.0-rc · Issue #1952 - GitHub
Incompatible with React Native >=0.7.1: More than one plugin attempted to publish the same registration name, onError ...
Read more >
React Native Android build failure with different errors without ...
The build failures for Android was due to the publish of the React Native version 0.71.0-rc0 . Note: Error may be different but...
Read more >
Changelog | Meteor API Docs
_retrieveCredentialSecret() fails trying to get credentials inside Accounts.oauth.tryLoginAfterPopupClosed(), we call it again once more.
Read more >
Changelog | Cypress Documentation
The .within() command now requires a single subject and throws an error if given more than one subject. This change adds consistency around...
Read more >
Error Handling in React 16 – React Blog
To solve this problem for React users, React 16 introduces a new concept of an “error boundary”. Error boundaries are React components that ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found