antd-dayjs-webpack-plugin icon indicating copy to clipboard operation
antd-dayjs-webpack-plugin copied to clipboard

date.localeData is not a function

Open Xianbei233 opened this issue 3 years ago • 10 comments

#36 umi 3.5.17 MFSU enable antd ^4.16.7 it happened in dev mode,production env not test

Xianbei233 avatar Aug 31 '21 06:08 Xianbei233

@iamkun

Xianbei233 avatar Aug 31 '21 06:08 Xianbei233

I had this issue too when flow replace MomentJS in document page

dungtran5 avatar Sep 21 '21 08:09 dungtran5

i have the same problem after using the plugin

Kulakoff1988 avatar Dec 02 '21 10:12 Kulakoff1988

have the same problem

johnsmithsren avatar Jun 11 '22 01:06 johnsmithsren

+1

ctq123 avatar Sep 22 '22 08:09 ctq123

We are facing the same issue. Please let us know if there is any workaround or solution

janardhanbw avatar Oct 17 '22 13:10 janardhanbw

Same problem with RangePicker

osumoclement avatar Feb 02 '23 08:02 osumoclement

@osumoclement This can be because of different dayjs versions inside your project and rc-picker.

You can check this with qnm:

npx qnm dayjs

This how the correct output should look like:

image

And this is the output in case of a bug:

image

You can fix this with Yarn resolutions in package.json, e.g.:

{
  "resolutions": {
    "dayjs": "^1.11.7"
  }
}

If you are using npm starting from v8.3.0 there should be overrides available:

{
  "overrides": {
    "dayjs": "^1.11.7"
  }
}

SleepWalker avatar Feb 06 '23 12:02 SleepWalker

Thank you, works now :-)

osumoclement avatar Feb 06 '23 12:02 osumoclement

This problem occurs again in [email protected] mfsu + [email protected]

mhxnb13 avatar May 15 '23 07:05 mhxnb13