Invariant Violation: 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 componentfrom the file it's defined in, or you might have mixed up default and named imports.
See original GitHub issueI’m using re-resizable@4.4.8 and got this error when rendering.
I’ve two components - one is parent and another one contains Resizable
.
Without Resizable
, it works correctly, but if I added this, I always get this error.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Invariant Violation: Element type is invalid: expected a string ...
If you get this error, it might be because you're importing link using ... You likely forgot to export your component from the...
Read more >(React) Element type is invalid, expected a string (for built in ...
Mixing up default and named imports when importing a component. Forgetting to export a component from a file. Incorrectly defining a React component,...
Read more >Element type is invalid: expected a string (for ... - OneCompiler
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports....
Read more >Uncaught Invariant Violation: Element type is invalid: expected ...
You likely forgot to export your component from the file it's defined in. ... components) or a class/function (for composite components) but got:...
Read more >Error: Element type is invalid: expected a string (for ... - YouTube
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@kirbudnik @thomastanck @olegsmetanin I rewritten by typescript. Please write following.
@bokuweb can we add this to the readme?