ijavad805 / react-datepicker

a cool datepicker
https://ijavad805.github.io/react-datepicker/
32 stars 5 forks source link

Error: Invalid Jalali year -100721 on NextJS #12

Open nafasebra opened 1 year ago

nafasebra commented 1 year ago

I got this error when app is mounted

Capture

and this is my component:

<Datepicker 
  input={
    <Field
      label="تاریخ رفت"
      id="date"
      name="date"
    />
  } 
  modeTheme={'light'}
  theme={'blue'}
  closeWhenSelectADay={true} // boolean
  defaultValue={moment()}
  value={dateInput}
  onChange={(val) => setDateInput(val)}
/>

Are you have any suggestion for solve the problem? what i to do?