zilverline / react-tap-event-plugin

Instant TapEvents for React
http://facebook.github.io/react/
MIT License
1.07k stars 110 forks source link

Errors with 2.0.1 #91

Closed Strandedpirate closed 8 years ago

Strandedpirate commented 8 years ago

Started getting random errors after pulling the latest 2.0.1 release.

Cannot resolve module 'react/lib/EventPluginHub'

yunderboy commented 8 years ago

I too... :/

olivierkastel commented 8 years ago

I have the same issue too

chipit24 commented 8 years ago

The release notes say:

Use v.2.0.1 for React ^15.4.0. This version breaks compatibility with React < 15.4.

I'm using React 15.4.0 with react-tap-event-plugin 2.0.1 and have no issues.

fc commented 8 years ago

From the README.md... just double check your React version then pick one of the following:

Compatible with React > 0.14 && < 15.4:

$ npm i --save react-tap-event-plugin@1.0.0

Compatible with React <= 0.14:

$ npm i --save react-tap-event-plugin@0.2.2
Strandedpirate commented 8 years ago

I think the problem in my case is that package.json was configured like this: "react-tap-event-plugin": "^1.0.0"

While I was installing another unrelated package (seneca.js) npm decided to pull down the latest version of this package 2.0.1 to screw with me..

I rolled back to 1.0.0 and removed the 'compatible with version' caret for this package in package.json and all is good again.