'I am tying to fix this typescript based package (react-litepicker) for a react project

I'm not acquainted with typescript, and I tried working with the forked example, but I can't figure out why I'm receiving this issue.

While using this package ([email protected]) and the git link from the package (react-litepicker) I got an error saying

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.

I tried eliminating the curly brackets surrounding my import statement, but it made no change. Here is a Code Sandbox example of the same package that was used for an application to help you understand it better (@1.2.6 Sandbox Example). Now for reference a working example of the same application with a downgraded version (@0.0.7 Example). The code remains the same, however, the versions have been upgraded. Could someone possibly advise me on how to fix this?

I mean, I forked it and am attempting to make improvements and publish it for the time being. If I obtain the repair, I'll be able to continue working on it.

Thank you!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source