clone.weekday is not a function
See original GitHub issuedayjs <= 1.8.30 没有问题 dayjs > 1.8.30 点击日期选择器直接报错
TypeError: clone.weekday is not a function
in DateBody (created by DatePanel)
in div (created by DatePanel)
in DatePanel (created by PickerPanel)
in div (created by PickerPanel)
in PickerPanel (created by InnerPicker)
in div (created by InnerPicker)
in div (created by PopupInner)
in PopupInner (created by Align)
in Align (created by CSSMotion)
in CSSMotion (created by ForwardRef)
in ForwardRef (created by Popup)
in div (created by Popup)
in Popup (created by Trigger)
in Portal (created by Trigger)
in Trigger (created by PickerTrigger)
in PickerTrigger (created by InnerPicker)
in InnerPicker (created by Picker)
in Picker (created by Context.Consumer)
in LocaleReceiver (created by Picker)
in Picker (at Header.tsx:35)
in header (at Header.tsx:33)
in div (at Header.tsx:32)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9
Top Results From Across the Web
Antd datepicker (date.clone is not a function) - Stack Overflow
I have realized that when using the inside <Form.Item > <Form.Item /> it will drop 'date.clone is not a function' error. So you...
Read more >[Solved]-Antd datepicker (date.clone is not a function)-Reactjs
I faced with the similar issue (date.clone is not a function) when tryed to use saved as a string type data for DatePicker...
Read more >[SOLVED] AntD Problem with DatePicker and moment.js ...
I'm trying to use AntD with a datepicker form but keep getting this error: Uncaught TypeError: config._d.getTime is not a function at new ......
Read more >Dayjs Clone
All Day.js objects are **immutable**. Still, `dayjs#clone` can create a clone of the current object if you need one.
Read more >antd Datepicker组件——date.clone is not a function - CSDN博客
clone is not a function或者date1.isAfter is not a function 原因分析: 在From中渲染默认值,一般数据请求拿到返回值存在异步,会晚于渲染,因此日期 ...
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 Free
Top 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
@jstaro found a way to do this.
This workaround solves the issue without having to downgrade dayjs:
https://github.com/ant-design/ant-design/issues/26190#issuecomment-703673400
Those lines should be added into this library.