tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

React-toastr throwing error #112

Closed tarunthota3 closed 7 years ago

tarunthota3 commented 7 years ago

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 7 years ago

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'
tomchentw commented 7 years ago

Released v2.9.3

kylemcclendon commented 7 years ago

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 7 years ago

Thanks for resolving the issue.. :)