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

Always throw 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. when use Typescript #140

Open
abayucode opened this issue Sep 18, 2023 · 1 comment

Comments

@abayucode
Copy link

abayucode commented Sep 18, 2023

Describe the bug
When me use react-native-modern-datepicker this is work when me use react-native with javascript, but in another project i used Typescript, then this library is not working.

Expected behavior
Work like me use javascript

Screenshots
Screenshot 2023-09-18 095154

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 116.0.5845.188 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: Android Samsung A51
  • OS: Android 3.3
  • Browser: Chrome
  • Version [e.g. 22]

Additional context
This error throwing when first render, and can't rendered react native component.

@AhmedFarazQaimkhani
Copy link

got the same error

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