gre / multi-slider

React component for multiple values slider (allocate values)
http://gre.github.io/multi-slider
49 stars 31 forks source link

error when trying to browserify #3

Closed pbaille closed 8 years ago

pbaille commented 8 years ago

I'm trying to browserify index.js and got this error

$ browserify src/index.js > bundle.js

Error: Cannot find module 'react/lib/invariant' from '/Users/user1/Documents/Code/multi-slider/node_modules/uncontrollable/lib' at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:46:17 at process (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:173:43) at ondir (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:188:17) at load (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:69:43) at onex (/usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:92:31) at /usr/local/lib/node_modules/browserify/node_modules/resolve/lib/async.js:22:47 at Object.oncomplete (fs.js:107:15)

Am I missing something?

gre commented 8 years ago

looks like it's a bug in uncontrollable, feel free to fork multi-slider, update uncontrollable, test it and submit a PR :)

pbaille commented 8 years ago

thanks for the answer I will look at this as soon as possible

mic159 commented 8 years ago

Same error for me when trying to use this with React 15 + webpack.

gre commented 8 years ago

I've released a 3.0.0 that should work with latest libs

mic159 commented 8 years ago

Thanks! It works!