react-tap-event-plugin: Missing imports with React 15.4.0

It looks like this plugin uses some React internals which got shifted around in 15.4.0

ERROR in ./~/react-tap-event-plugin/src/injectTapEventPlugin.js
Module not found: Error: Can't resolve 'react/lib/EventPluginHub' in '/Users/me/Documents/github/project/node_modules/react-tap-event-plugin/src'
 @ ./~/react-tap-event-plugin/src/injectTapEventPlugin.js 23:2-37
 @ ./src/app/entry.js
 @ multi app

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 45
  • Comments: 22

Commits related to this issue

Most upvoted comments

i recommend rolling back until fix… i went back to "react": "15.3.0", "react-dom": "15.2.1", "react-redux": "4.4.5",

and everything works again

Seems like material-ui is still stuck on react-tap-event 1.0.0 😦

There was some other issue besides the missing imports, this now fixed. Version 2.0.0 is now on npm and is compatible with React 15.4. Thanks for reporting!

i’m having this same issue with react ^15.3.0 and react-tap-event-plug ^1.0.0

Well, not wanting to flood here but you guys should have a look at https://yarnpkg.com/. It would most certainly avoid breaks on production.

@brendanmh yeah 15.4.0 was released today

"react": "^15.3.2", means that you can install any react@15.x.x version, which includes react@15.4.0 which is causing the trouble.

You can try "react": "15.3.2", or "react": "~15.3.2",. However you will probably find that other modules will pull in react@15.4.0 too (like material-ui), so you will have to amend them.

Updating to v2.0.0 of react-tap-event-plugin fixed this for me. I had to manually update my package file as it wasn’t detecting an update via CLI for some reason.

@aclarkdev your suggestion did solved my problem! Thx a lot! 👍

I’m seeing all these react/lib/* modules in react-dom/lib now, however simply switching them over to that makes onTouchTap not work 😕