-
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
React 13.3 with browserify: onTouchTap still not firing #22
Comments
Same thing here with Webpack. Also trying to use material-ui (but not isomorphic). |
Same here. I was on React 0.13.2 and react-tap-event-plugin 0.1.6 and it was working fine. Updating to 0.13.3 and 0.1.7 broke all onTouchTaps. No errors or warnings. I'm also using a cdn for React, webpack for the rest of the browser bundle, in case that's relevant. |
Same as @spicydonuts here. Love the onTouchTap feature, but seems broken in 0.1.7 + React 0.13.3. Looking at the source, I think this is really boils down to just a bug in React 13.3. |
Is there are any alternatives? |
It's working fine for me with webpack, react 13.3, and 1.7 |
Hi all, newbie here - so apologise if this is off topic, not related to this bug or something stupidly simple that everyone has already done. (options.development ? dependencies : []).forEach(function (dep) { This may or may not be related to this bug, but hopefully it will help some other newbie who also stumbles upon this page. |
Same as @spicydonuts here. Any workaround solution? update
|
Any updates? |
if u use webpack and set react as a external lib like this, u may run into this issue.
a solution is use webpack build react and InjectTapEventPlugin. this problem may be caused by the requires like |
I have no experience with webpack, but maybe you can use the latest version of the plugin. It now supports React 0.14. I've also included a demo project which explains how to build a version of React with the tap event plugin included. Maybe you could build a version of React using the demo instructions and include that file in your webpack config? |
Its not a problem with webpack, but rather a problem with the fact the |
@kellyrmilligan do you have a repo or can you point us to a repo where this is working with react in the webpack externals, react 13.3, and 1.7? |
Here is how I'm currently patching react with this plugin. I'd love to have the plugin itself address this issue though. https://github.com/hartmamt/react-with-tap-events |
Not sure why this closed... this is a royal PAIN!!! Patching does not work IF YOU ARE USING AN EXTERNAL REACT. And some people do not have a choice. |
We use the version patched version of react I linked above as an external, we haven't had any issues...but I agree it is a pain and we have to maintain a patched version for whatever react release we are using. |
I was having the same issue with my attempt at an isomorphic app. But I got it solved! The versions Im using are (from my package.json): I had issues when using version 1.0.0 of react-tap-event-plugin. When I downgraded to ^0.2.2 everything worked as expected. |
@nsantini , Thanx for idea!!!! Downgraded to [email protected] was the solution for me! First remove react-tap-event-plugin from your dependensies: than install target version: if you want check what versions are available: |
Massive thanks to @hartmamt for react-with-tap-events. Generating my own react with addons and the tap events fixed it. Just forked and updated for react 15.3.1. |
@nswarr Thank you for taking the time to put that together. You've solved a painful headache for us. |
For |
I'd love to use this in my isomorphic app, but I'm failing to integrate this.
When I specify
onTouchTap
handlers to my components, they simply don't fire. So, for example, to use material-ui, I've had to replace allonTouchTap
's withonClick
's.I'll give some info about the context in which I'm trying to inject this - maybe some of it will be useful:
I'm using server side rendering, and bundling all of the components for use in the browser using browserify. So that I can use a cdn and to reduce the size of my bundle, I don't just bundle in the server version of react from node_modules. I use browserify-shim to achieve this. It essentially substitutes all
require('react')
's withwindow.React
in the browser bundle.What could be the issue here?
The text was updated successfully, but these errors were encountered: