question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

I’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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bokuwebcommented, Jun 13, 2019

@kirbudnik @thomastanck @olegsmetanin I rewritten by typescript. Please write following.

import { Resizable } from "re-resizable";
0reactions
Slapboxcommented, Jul 4, 2019

@bokuweb can we add this to the readme?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found