Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

date.localeData is not a function #65

Open
Xianbei233 opened this issue Aug 31, 2021 · 10 comments
Open

date.localeData is not a function #65

Xianbei233 opened this issue Aug 31, 2021 · 10 comments

Comments

@Xianbei233
Copy link

Xianbei233 commented Aug 31, 2021

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

@Xianbei233
Copy link
Author

@iamkun

@dungtran5
Copy link

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

@Kulakoff1988
Copy link

i have the same problem after using the plugin

@johnsmithsren
Copy link

have the same problem

@ctq123
Copy link

ctq123 commented Sep 22, 2022

+1

@janardhanbw
Copy link

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

@osumoclement
Copy link

Same problem with RangePicker

@SleepWalker
Copy link

@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"
  }
}

@osumoclement
Copy link

Thank you, works now :-)

@mhxnb13
Copy link

mhxnb13 commented May 15, 2023

This problem occurs again in umi@3.5.40 mfsu + antd@4.24.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants