-
Notifications
You must be signed in to change notification settings - Fork 110
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
Uncaught Error: Invariant Violation: EventPluginRegistry: Cannot inject two different event plugins using the same name, TapEventPlugin
.
#47
Comments
Is there a solution for this? I'm using a |
I've found a workaround for this: call injectTapEventPlugin() just once, in componentWillMount() of your top-level app component. This made the tap event plugin available in all of my child components and it was called only once. |
At the moment |
@prewk material-ui shouldn't be bringing in tap event plugin, you should be calling it in your application and only once. Are you sure another component isn't calling it instead as well? See |
Yeah I wrote about it in another issue pointing here, my problem was a strange edge case with the require-new library so never mind me. |
If using universal rendering, just put it over client.js, everything will be fine. |
To fix this issue only call one time var tapEventPlugin = require("react-tap-event-plugin")(); in your app or lib. |
When integrating multiple components that use
react-tap-event-plugin
(e.g.react-autosuggest
) the following error appears:Is there a way to make sure that
react-tap-event-plugin
is instantiated only once?The text was updated successfully, but these errors were encountered: