Old version of React-Date-Picker allows too new version of React-Calendar
See original GitHub issueI installed using:
npm i react-date-picker@6.7.0
With react 15.5.4
When I try to do the simple example:
state = {
date: new Date(),
}
onChange = date => this.setState({ date })
render() {
return (
<DatePicker
onChange={this.onChange}
value={this.state.date}
/>
}
I get this error in the console:
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
react-datepicker - npm
A simple and reusable datepicker component for React. Latest version: 4.8.0, last published: 7 months ago. Start using react-datepicker in ...
Read more >React date pickers use older react versions - Stack Overflow
I am creating application which use a calendar and tried several react-date time pickers such as react-jqueryui-datepicker ...
Read more >Getting started with react-datepicker - Retool
Learn how to use react-datepicker in your React app to build a simple datepicker and customize it with time functionality, disabling dates, ...
Read more >React custom datepicker: Step-by-step - LogRocket Blog
datepicker : Renders a date input and presents the calendar for the user to select the date. We'll store each component in its...
Read more >Datepicker documentation for React | Mobiscroll
Name Type Default value
anchor HTMLElement undefined
animation String, Boolean undefined
buttons Array
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey there, it seems like the version of react-calendar got installed. Which is odd, because it means package-lock.json did not work properly 😦 Please try the following:
I think this will ensure the correct version of dependencies is installed.
@buddythumbs are you sure everything installed correctly, both of the packages appear in your package.json?? Perhaps you could try deleting your
package-lock.json
and yournode_modules
folder and then runningnpm install