Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'ToastContainer' of undefined(…) #42

Closed
luqin opened this issue Nov 2, 2015 · 7 comments
Closed

TypeError: Cannot read property 'ToastContainer' of undefined(…) #42

luqin opened this issue Nov 2, 2015 · 7 comments

Comments

@luqin
Copy link

luqin commented Nov 2, 2015

No description provided.

@tomchentw
Copy link
Owner

More details?

@luqin
Copy link
Author

luqin commented Nov 2, 2015

export default {
  ToastContainer,
  ToastMessage,
  ToastMessageList,
};

@iamyardem
Copy link

another error message while compiling project is

ERROR in .//react-toastr/lib/ToastMessage/jQueryMixin.js
Module not found: Error: Cannot resolve module 'jquery' in \node_modules\react-toastr\lib\ToastMessage
@ ./
/react-toastr/lib/ToastMessage/jQueryMixin.js 9:14-31

@tomchentw
Copy link
Owner

@luqin this is exported as ES2015 module. It make no sense to export default with an object. https://github.com/tomchentw/react-toastr/blob/97e046bcf73694ecdd170c229a08700e1e9a3840/lib/index.js

@tomchentw
Copy link
Owner

@iamyardem @luqin sorry guys, I think I accidentally introduce new commits in a patch bump. See CHANGELOG.md for v2.2.1 here. I'll unpublished it from npm now.

@tomchentw
Copy link
Owner

v2.2.2 published. Sorry again for any inconvenience.

@iamyardem
Copy link

thanks for fast reply! appreciate it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants