と反応デイ・ピッカーからDayPickerInputを使用することができません:私は以下のようにDayPickerInputインポートしようとするたびに活字体
import DayPickerInput from 'react-day-picker/DayPickerInput';
私はtsの警告が表示されます:「モジュールの宣言ファイルを見つけることができませんでした「反応日間-picker/DayPickerInput。 "唯一DayPickerが定義型を持っているようモジュールフォルダを見てみると
は、見えます。
私が代わりに以下のような必要メソッドを使用しよう:
var DayPickerInput = require('react-day-picker').DayPickerInput;
私のプロジェクトでは、罰金のビルドが、コンポーネントが表示される必要があるとき、私は、コンソールでの2つのランタイムエラーを取得:
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は、今の私のために使用不可能です。
我々はそれに取り組んでいる:) https://github.com/gpbl/react-day-picker/issues/464 – gpbl