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
- upgrade react-tap-event-plugin to v2.0.0 to resolve react 15.4.0 upgrade issues https://github.com/zilverline/react-tap-event-plugin/issues/85 — committed to ananavati/electrode-webpack-reporter by ananavati 8 years ago
- upgrade react-tap-event-plugin to v2.0.0 to resolve react 15.4.0 upgrade issues (#8) * upgrade react-tap-event-plugin to v2.0.0 to resolve react 15.4.0 upgrade issues https://github.com/zilverline... — committed to electrode-io/electrode-webpack-reporter by ananavati 8 years ago
- rolled back to react: 15.3.0 temporarily 1. github issue: https://github.com/zilverline/react-tap-event-plugin/issues/85 2. added yarn.lock file — committed to Cloud-CV/Origami by tocttou 8 years ago
- chore (config) updated dependencies; locked react & react-dom react and react-dom locked into specific version due to: https://github.com/zilverline/react-tap-event-plugin/issues/85 — committed to LunaMinds/code-cafe by metasean 8 years ago
- Fix npm start There was an issue with `react-tap-event-plugin`: `Error: Cannot resolve module 'react/lib/EventPluginHub'` Updating `react` and `react-tap-event-plugin` per https://github.com/zilverli... — committed to d3ming/react-redux-material_ui-boilerplate by d3ming 7 years ago
- upgrade react-tap-event-plugin to v2.0.0 to resolve react 15.4.0 upgrade issues (#8) * upgrade react-tap-event-plugin to v2.0.0 to resolve react 15.4.0 upgrade issues https://github.com/zilverline... — committed to jchip/electrode by ananavati 8 years ago
- rolled back to react: 15.3.0 temporarily 1. github issue: https://github.com/zilverline/react-tap-event-plugin/issues/85 2. added yarn.lock file — committed to riseeverytime/Origami by tocttou 8 years ago
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 inreact-dom/lib
now, however simply switching them over to that makesonTouchTap
not work 😕