Closed pratikborsadiya closed 7 years ago
Hello,
Did you had an old version of react-transition-group installed previously ?
No it's a fresh npm install.
I ran npm list react-transition-group
and here is the output.
+-- react-addons-css-transition-group@15.6.2
| `-- react-transition-group@1.2.1
`-- react-toastify@2.1.0
`-- react-transition-group@2.2.1
It seems that other packages in my app are using the old version.
Indeed. But it's working on development right ? Are you using yarn ? If yes you can solve your issue easily. Yarn allow you to use different version of the same package via aliases.
We are using npm and it's not working in devlopment either.
Is there any other way except manually installing react-transition-group
?
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
I have downgraded the version to 2.0.0
but the error is sill there.
Damn it. You will have to use symlink or replace react-addons-css-transition-group
by react-transition-group
since react-addons-css-transition-group
is deprecated.
The error is gone in 2.0.0
It was ^
in package which was installing 2.1.0
, I have replaced it with ~
and version 2.0.0
is working fine.
Thanks for the help.
Awesome !
This issue still exists.
Hello @wesharehoodies,
Could you give the version of react-toastify you are using? Are you upgrading or is it a fresh install.
Thanks
"react-toastify": "^3.2.2",
It's a fresh install
Are you using another version of react-transition-group inside your project?
I removed react-transition-group
and replaced it with react-addons-css-transition-group
and it works.
Both packages were the latest.
Same issue.
I dont have react-transition-group
in my npm dependencies. I already have react-addons-css-transition-group
in my npm dependencies.
EDIT: Fixed by
"react-toastify": "^4.0.0-rc.4
react-addons-css-transition-group
from my npm deps"react-transition-group": "^2.3.1"
to my npm deps
There is an error while running webpack in production mode
webpack -p
when using react-toastify.react-toastify version
Webpack Version: webpack 3.6.0