Skip to content
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

Error: Cannot resolve module 'react/lib/EventPluginHub' #24

Closed
oriolsr opened this issue Nov 17, 2016 · 5 comments
Closed

Error: Cannot resolve module 'react/lib/EventPluginHub' #24

oriolsr opened this issue Nov 17, 2016 · 5 comments

Comments

@oriolsr
Copy link

oriolsr commented Nov 17, 2016

ERROR in ./\~/react-tap-event-plugin/src/injectTapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventPluginHub' in ./node_modules/react-tap-event-plugin/src
 @ ./\~/react-tap-event-plugin/src/injectTapEventPlugin.js 23:2-37

ERROR in ./\~/react-tap-event-plugin/src/TapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventConstants' in ./node_modules/react-tap-event-plugin/src
 @ ./\~/react-tap-event-plugin/src/TapEventPlugin.js 22:21-56

ERROR in ./\~/react-tap-event-plugin/src/TapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventPluginUtils' in ./node_modules/react-tap-event-plugin/src
 @ ./\~/react-tap-event-plugin/src/TapEventPlugin.js 23:23-60

ERROR in ./\~/react-tap-event-plugin/src/TapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/EventPropagators' in ./node_modules/react-tap-event-plugin/src
 @ ./~/react-tap-event-plugin/src/TapEventPlugin.js 24:23-60

ERROR in ./\~/react-tap-event-plugin/src/TapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/SyntheticUIEvent' in ./node_modules/react-tap-event-plugin/src
 @ ./~/react-tap-event-plugin/src/TapEventPlugin.js 25:23-60

ERROR in ./\~/react-tap-event-plugin/src/TapEventPlugin.js
Module not found: Error: Cannot resolve module 'react/lib/ViewportMetrics' in ./node_modules/react-tap-event-plugin/src
 @ ./\~/react-tap-event-plugin/src/TapEventPlugin.js 27:22-58

material-ui#21
react-tap-event-plugin#82

Below dependencies should be updated
material-ui@0.16.3
react-tap-event-plugin@2.0.0

@oriolsr oriolsr changed the title react-tap-event-plugin should be upgraded to @2.0.0 Error: Cannot resolve module 'react/lib/EventPluginHub' Nov 17, 2016
oriolsr added a commit to oriolsr/generator-react-firebase that referenced this issue Nov 17, 2016
@oriolsr
Copy link
Author

oriolsr commented Nov 17, 2016

I've updated and fixed (defensively) both material-ui@16.0.3 and react-tap-event-plugin@2.0.0

Hope that helps!

This was referenced Nov 18, 2016
prescottprue added a commit that referenced this issue Nov 18, 2016
* `.babelrc` added (to solve global .babelrc)
* Location action synced with browser history
* `react`, `react-dom`, and `react-addons-test-utils` locked to `v15.3.2` (current fix for #24)
* Some dev dependencies updated (better-npm-run, fs-extra, yargs, eslint-plugin-babel)
@prescottprue
Copy link
Owner

prescottprue commented Nov 18, 2016

Should be solved by v1.0.3 release. Created a separate issue for updating dependencies including getting material-ui to v0.16.4 and tap-event-plugin to v2.1.0.

@MadeInMoon
Copy link

What worked for me:

  • delete the node_modules/ folder
  • npm install

@prescottprue
Copy link
Owner

@MadeInMoon Yes, that should fix it in an already generated project. If you update using npm i -g generator-react-firebase, then future projects should be good from the start.

@washington-kibichii
Copy link

You are probably getting this error because you need to update a dependency in your project package.json file. In my case:
"react-tap-event-plugin": "^1.0.0" to "react-tap-event-plugin": "^2.0.0"
after making that change, remove the node_modules folder:
rm -rf node_modules

then finally:
npm install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants