react-toastify: Error in DefaultTransition.js
There is an error while running webpack in production mode webpack -p when using react-toastify.
react-toastify version
+-- react-toastify@2.1.0
`-- react-transition-group@2.2.1
Webpack Version: webpack 3.6.0
ERROR in ./node_modules/react-toastify/lib/DefaultTransition.js
Module not found: Error: Can't resolve 'react-transition-group/Transition' in '/home/pratik/Projects/watercart/node_modules/react-toastify/lib'
@ ./node_modules/react-toastify/lib/DefaultTransition.js 13:18-62
@ ./node_modules/react-toastify/lib/ToastContainer.js
@ ./node_modules/react-toastify/lib/index.js
@ ./client/admin/admin-app.js
@ ./client/admin/admin.js
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (7 by maintainers)
This issue still exists.
You could try to use the react-toastify v2.0.0 so you won’t have to do manual changes. The v2.1 is tested with enzyme 3, react16 and provide custom animation.
The other solution would be to use symlinks