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

Element type is invalid #5

Open
nagarjuna993 opened this issue Jul 9, 2018 · 1 comment
Open

Element type is invalid #5

nagarjuna993 opened this issue Jul 9, 2018 · 1 comment

Comments

@nagarjuna993
Copy link

I am unable to use the component. When i am importing ToastController and using it, i am getting the below error

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.

@gerysk
Copy link

gerysk commented Jul 12, 2018

Instead of <ToastController /> use <ToastContainer />. Also at that same file add import 'react-toastify/dist/ReactToastify.css'; Wasted a few hours trying to figure it out. Thank you README.md -.-

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

2 participants