-
Notifications
You must be signed in to change notification settings - Fork 335
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
Dynamically importing date-fns locales other than en-US fail #1574
Comments
@jsit @SleeplessOne1917 We should remove |
Should we go back to using Moment? Also, @alectrocute wasn't there an NPM library you shared in the dev matrix room that looked like a promising fix? |
Yeah, @SleeplessOne1917, the |
Is this one still an issue? Or did the above PR fix it? |
Still an issue, a big one. |
@alectrocute how to reproduce? It's importing for me without issues now |
|
Can't reproduce, are you sure you're not getting an older cached client.js? |
Resolved in |
Requirements
Summary
lemmy-ui/src/shared/utils/app/setup-date-fns.ts
Lines 10 to 15 in dd43827
If a user's browser is set to prefer something other than en-US, for example en-GB, then this import fails with the following error:
Steps to Reproduce
lang
toen-GB
or another locale supported by date-fnsTechnical Details
Chrome, running lemmy locally
Lemmy Instance Version
0.18
Lemmy Instance URL
No response
The text was updated successfully, but these errors were encountered: