question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[3.9.0] moment locale & Typescript issue

See original GitHub issue

locale is ignored after 3.9.0 update + undefined in event title No error in the console

locale is supposed to be fr: image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
arshawcommented, Mar 22, 2018

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#L13

which 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

2reactions
arshawcommented, Mar 28, 2018

fullcalendar-scheduler 1.9.4 has been release specifically to solve this problem: https://github.com/fullcalendar/fullcalendar-scheduler/releases/tag/v1.9.4

please let us know if you experience continued problems.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found