I'm using DatePicker and I can't set the default Values, I tried this:
I import the moment like this:
import moment from 'moment';
//And then:
<DatePicker
defaultValue={moment('2015/01/01', 'YYYY/MM/DD')}
/>
//Also tried this
<DatePicker
defaultValue={moment('2015/01/01')}
/>
But I got this error: "Type 'import("C:/git/my_project/node_modules/moment/moment").Moment' is not assignable to type 'moment.Moment'. Types of property 'add' are incompatible."
I can't find where is my error
When I type npm ls moment and npm ls @types/moment. This is the result:
