furqanZafar / react-selectize

http://furqanzafar.github.io/react-selectize/
Apache License 2.0
704 stars 138 forks source link

Module not found: Error: Can't resolve 'react-transition-group/CSSTransitionGroup' #168

Open davide-scalzo opened 7 years ago

davide-scalzo commented 7 years ago

Hi there! Firstly, thanks so much for the library very easy to use and practical!

I am experiencing a problem deploying to production (heroku). I'm using react-boilerplate, and successfully using the library on dev, but when it comes to deploying to production webpack throws the following at build time.

ERROR in ./~/react-selectize/src/DropdownMenu.js
       Module not found: Error: Can't resolve 'react-transition-group/CSSTransitionGroup' in '/tmp/build_670d34b61b9fae1ad88ed661c39d6bee/node_modules/react-selectize/src'
       @ ./~/react-selectize/src/DropdownMenu.js 8:42-94
       @ ./~/react-selectize/src/ReactSelectize.js
       @ ./~/react-selectize/src/index.js

I already have react-transition-group ^2.1.0 in my package.json in my project, not sure if that's the issue though. Any help would be super appreciated!

hwaterke commented 7 years ago

Same problem. Going back to "react-transition-group": "^1.1.2" fixes the issue. I guess the library needs to be updated to work with v2.1.0.

pencilcheck commented 7 years ago

How do I upgrade to react 16? I upgrade everything then I get this error.

anydasa commented 6 years ago

I had same issue. I installed vie yarn. But then I tried install the depenses by npm (5.5.1) everything became well