Whenever I try to import DayPickerInput like below:
import DayPickerInput from 'react-day-picker/DayPickerInput';
I get the ts warning: "Could not find a declaration file for module 'react-day-picker/DayPickerInput."
Looking at the module folder, looks like only DayPicker has types defined.
When I try to use the require method instead like below:
var DayPickerInput = require('react-day-picker').DayPickerInput;
My project builds fine but I get a 2 runtime errors in the console when the component needs to be displayed:
Warning: React.createElement: 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.
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.
DayPickerInput is unusable for me right now.