TypeScript import error: You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. #224
Labels
question
Further information is requested
I'm using TypeScript and doing following import:
And i get following error:
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
Here is a screenshot from developer console (don't pay attention to
react-loadable
)For example, using of
MonthView
works fine. But entire default module not working.TypeScript version – 3.5.3
React version – 16.8.6
React Calendar version – 2.19.0
The text was updated successfully, but these errors were encountered: