-
Notifications
You must be signed in to change notification settings - Fork 92
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
Inertia React #375
Comments
UPD sorry, it's "Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object." not undefined Happened to me whilst migrating from I found a hack to work around this: import Tippy from '@tippyjs/react';
const TippyComponent =
(Tippy as unknown as { default: typeof Tippy }).default ??
Tippy; then use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uncaught 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.
The text was updated successfully, but these errors were encountered: