react icon indicating copy to clipboard operation
react copied to clipboard

ReactEventEmitter error after upgrade to react 0.9.0-rc1

Open mablack opened this issue 12 years ago • 2 comments

I've just upgraded a previously working app, and running the app throws the following error in Chrome:

ReactEventEmitter.js:254
Uncaught TypeError: Cannot read property 'length' of undefined 

I don't get a more detailed stack trace though, sorry.

The app was previously working without errors with react 0.8. I've also upgraded the react-touch-lib dependency to 0.0.4, and created a fork of the react-touch-lib repo to update the react dependency to 0.9.0-rc1 - just in case the existing dependency on react 0.8 was causing the issue.

mablack avatar Feb 18 '14 00:02 mablack

I think https://github.com/petehunt/react-touch-lib/pull/1 should fix this for your use case. Perhaps we should also make the code work if there are no dependencies listed -- but probably all event plugins will have dependencies so maybe best to leave required as-is.

sophiebits avatar Feb 18 '14 00:02 sophiebits

Thanks, that fixes my issue!!

mablack avatar Feb 18 '14 00:02 mablack