React-toastify: 2.2.2 requires glamor

Created on 27 Nov 2017  路  9Comments  路  Source: fkhadra/react-toastify

Just updated react-toastify to 2.2.2 from npm and it broke my build:

ERROR in ./node_modules/react-toastify/lib/ProgressBar.js
Module not found: Error: Can't resolve 'glamor' in '/home/.../node_modules/react-toastify/lib'
 @ ./node_modules/react-toastify/lib/ProgressBar.js 17:14-31
 @ ./node_modules/react-toastify/lib/Toast.js
 @ ./node_modules/react-toastify/lib/ToastContainer.js
 @ ./node_modules/react-toastify/lib/index.js
 @ ./lib/.../action/notificationsactions.js
 @ ./lib/.../action/notificationsactions_test.js
 @ ./testfiles/unit_tests.js
webpack: Failed to compile.

regression

Most helpful comment

sorry guys I'll fix it asap. You could upgrade to the v3

All 9 comments

Same issue with version 2.2.0 and toastify display incorrect with me, although it ran fine on last week

2.2.1 runs fine for me.

A temporary fix is adding glamor as a dep for your own project.

sorry guys I'll fix it asap. You could upgrade to the v3

Same issue with 2.2.1 on my side.

@FallenAngel666 can you upgrade to the latest version(v3) ?

Yeah, I guess "Can't resolve 'react-toastify/dist/ReactToastify.min.css' in" is just version related ^^

Indeed, since v3 I switched to glamor so no need to import the css. I'll check if there is a way to add deprecation notice when npm update the package.

Thank you :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

billtlee picture billtlee  路  5Comments

spiritedfang picture spiritedfang  路  3Comments

shirbr510 picture shirbr510  路  5Comments

AllyssonAlas picture AllyssonAlas  路  4Comments

NoMercy235 picture NoMercy235  路  5Comments