Closed djfarly closed 7 years ago
Got this issue with react-16.0.0-alpha.12
Module not found: Error: Can't resolve 'react-dom/lib/EventPluginHub' in '[…]/node_modules/react-tap-event-plugin/src'
What's the way fwd?
Have same issues with react 16.alpha
Got the same issue with 15.6.1
works fine in dev but can't build. Using next.js
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
}
Seems like my issue is related to https://github.com/zilverline/react-tap-event-plugin/issues/99
This issue has been open since June, but there isn't any recent activity on it. Has anyone proposed a path forward or come up with an alternative solution now that React 16 has been released? Thanks
I've updated the plugin to version 3.0.0, to be compatible with React 16. I had to copy a big chunk of React internals to keep it working. This solution will probably not last for future versions. React is making it harder and harder to keep this plugin going.
Please test the latest commit in your application and let me know the results so I can publish to npm.
This solution will probably not last for future versions.
react-fastclick
works for us as a replacement.
// index.jsx
import * as initFastClick from "react-fastclick";
initFastClick();
Works great @s0meone , thanks ;)
@s0meone I'm still seeing an error regarding the EventPluginHub:
Hi, Thanks for maintaining this! Any update regarding a new version that support React 16?
Hey, first of all thanks for the project. ;)
The current alpha of react 16 uses flat bundles (currently 16.0.0-alpha.13). Therefore there are no more react-dom/lib/* exports. There is a note in the fiber umbrella issue explicitly mentioning react-tap-event-plugin:
As far as i can see tap event plugin uses more exports from /lib than just EventPluginHub. Namely:
React DOM currently exports:
What would be the path forwards? 🙈 Is there some way to help?
For reference heres the output of the webpack build: