[3.9.0] moment locale & Typescript issue
See original GitHub issuelocale is ignored after 3.9.0 update + undefined
in event title
No error in the console
locale is supposed to be fr
:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:22 (8 by maintainers)
Top Results From Across the Web
How can moment.js be imported with typescript?
You need to install moment typings without the --ambient flag. Then include it using import * as moment from 'moment'. Share.
Read more >MomentJS - Quick Guide - Tutorialspoint
MomentJS allows customization to the locale created. You can customize month names, month abbreviation, weekday names, weekday abbreviation, long date format, ...
Read more >Docs - Moment.js
Some libraries use the ECMAScript Intl API for locales, time zones, or both. Some libraries still provide their own locale and time zone...
Read more >vue2-datepicker - npm
Props ; type, select the type of picker, date |datetime|year|month|time|week ; range, if true, pick the range date, boolean ; format, to set...
Read more >moment | Yarn - Package Manager
A JavaScript date library for parsing, validating, manipulating, and formatting dates. Project Status. Moment.js is a legacy project, now in maintenance mode.
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 FreeTop 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
Top GitHub Comments
I’ve figured out what’s going on.
fullcalendar-scheduler says that it needs
~3.8.1
https://github.com/fullcalendar/fullcalendar-scheduler/blob/v1.9.3/package.json#L13which will NOT go up to fullcalendar
3.9.x
so, if you want the latest fullcalendar (3.9.0) and the latest fullcalendar-scheduler (1.9.3), two version of fullcalendar will be loaded (as someone previously noted) in order to stay true to the dependency semvers.
all the resulting locale errors are happening because of this mixup
i’ll release a new version of fullcalendar-scheduler soon with this corrected.
in the meantime, if you’re using webpack, you can force both references of fullcalendar to resolve to the same module by doing an alias: https://stackoverflow.com/a/40907164/96342
fullcalendar-scheduler
1.9.4
has been release specifically to solve this problem: https://github.com/fullcalendar/fullcalendar-scheduler/releases/tag/v1.9.4please let us know if you experience continued problems.