React-toastr throwing error
tarunthota3 opened this issue · 4 comments
tarunthota3 commented
I have been receiving a new error after the latest release 2.9.2, before it was working fine.
The error which i got is - "import is not defined"
culshaw commented
I get something similar.
When using 2.9.2 with babelify/browserify
[16:45:23] Browserify Error
~/node_modules/react-toastr/lib/index.js:1
import { default as ToastContainer } from "./ToastContainer";
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
kylemcclendon commented
Thank you for the quick fix to this. I was having a similar issue when running tests, but it's all good now!
tarunthota3 commented
Thanks for resolving the issue.. :)