tomchentw/react-toastr

React-toastr throwing error

tarunthota3 opened this issue · 4 comments

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"

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'

Released v2.9.3

Thank you for the quick fix to this. I was having a similar issue when running tests, but it's all good now!

Thanks for resolving the issue.. :)