mdbootstrap / mdb-react-ui-kit

React 18 & Bootstrap 5 & Material Design 2.0 UI KIT
https://mdbootstrap.com/docs/b5/react/
Other
1.41k stars 264 forks source link

ToastContainer component not working #56

Closed Jacob8765 closed 5 years ago

Jacob8765 commented 5 years ago

The ToastContainer component throws this error whenever I try to use it:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

I am importing it like this import { ToastContainer, toast } from "mdbreact";, and using it in my app like this:

<ToastContainer hideProgressBar={true} newestOnTop={true} autoClose={5000} />

Rotarepmi commented 5 years ago

Toast/Notification is a pro component. https://mdbootstrap.com/docs/react/advanced/notifications/

Please update to pro version in case you want to use it - and many more components.

Regards