I'm somewhat new to React and Preact. I really want to use React Dates in a Preact app, but I'm repeatedly getting some errors on build (although it works fine in production). The errors aren't showstoppers, but I can't figure out how to make them go away.
I generated the app using Preact Cli, if that helps.
I'm creating this little repo to hopefully get some help from the cool folks at airbnb react-dates.
๐ฌ If I'm being dumb, feel free to yell at me.
- Clone this repo.
- Run
yarn install
- Run
yarn start
- http://localhost:8080/ (or wherever)
You'll see a bunch of:
Warning: Failed prop type: WithStyles: unknown props found: children
Warning: Failed prop type: DateRangePicker: unknown props found: children
Warning: Failed prop type: DateRangePickerInputController: unknown props found: children
Warning: Failed prop type: DateRangePickerInput: unknown props found: children
Warning: Failed prop type: DateInput: unknown props found: children
If you yarn build
and run a python -m SimpleHTTPServer
on the build file, I see the DateRangePicker
render and function perfectly, leading me to think this is just a dev problem.
Any/all help appreciated!
-Matt