-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fixed a TypeScript Error #1687
Fixed a TypeScript Error #1687
Conversation
Also having this issue, waiting for the merge. |
Hi @PaitoAnderson @gpeal , Getting this exception when I am trying to load MapView from .tsx file. Same works beautifully if I load it from Javascript(.js) file. Please help. Unhandled JS Exception: 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 component from the file it's defined in.
|
Have you tried: |
@luiseduardobrito Brilliant, it worked :) Thank you so much :) |
@PaitoAnderson adding support for typescript is greatly appreciated! To make it easier to use this package with typescript, would you mind adding a little example? I first struggled with the import issue, but I still cannot get my code to typecheck. e.g. I use a
or more visible even: where is the definition for
having a little example to start with would for sure help the typescript users. For my part I switched back to 0.16.4 since I did not find a quick solution. |
@marcmo Here is a quick example, looks like I forgot the
|
super awesome @PaitoAnderson ! I bet this will help others as well. |
Fix a bug I found after submitting PR #1601.
I was getting this error:
[TS] Exports and export assignments are not permitted in module augmentations.
Thanks!