Closed 0x80 closed 9 years ago
yeah. I'm having this problem too.
+1, having this issue too.
You can work around it by not depending on index.js and instead on specific sub components that don't use react-draggable2, but it's annoying.
+1 work around it by install reactify on project level.
+1
I'm using the same workaround as @weijar. The dependencies of react-draggable2
just need adjustment. I've opened an issue upstream (mikepb/react-draggable#2), along with a PR to fix it (mikepb/react-draggable#3).
Commit https://github.com/mikepb/react-draggable/commit/9d312687e338987b44a32612e49d44957648b87f removes the dependency on reactify for browserify users by pre-compiling react-draggable. Please let me know if that fixes things (I'm not a browserify user).
Note: the change has not been pushed to NPM or material-ui, but is available for testing.
+1
Thanks to @mikepb, this is fixed for me if material-ui
simply updates its dependency on react-draggable2
to ^0.5.0, which is now in NPM.
Not sure if this one can be blamed on material-ui at all. If I use browserify on material-ui, and I don't have reactify installed I get this error:
I'm not using reactify myself since I replaced it with 6to5ify/babelify. Shouldn't the reactify module be installed as a dependency of react-draggable2?