antd-dayjs-webpack-plugin
antd-dayjs-webpack-plugin copied to clipboard
date.localeData is not a function
#36 umi 3.5.17 MFSU enable antd ^4.16.7 it happened in dev mode,production env not test
@iamkun
I had this issue too when flow replace MomentJS in document page
i have the same problem after using the plugin
have the same problem
+1
We are facing the same issue. Please let us know if there is any workaround or solution
Same problem with RangePicker
@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:
And this is the output in case of a bug:
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"
}
}
Thank you, works now :-)
This problem occurs again in [email protected] mfsu + [email protected]