tick icon indicating copy to clipboard operation
tick copied to clipboard

Tick fails with most recent js-joda version

Open zilti opened this issue 2 years ago • 5 comments

Hi there! I tried updating our project's dependencies today to the latest versions, including the ones in our package.json. We are using shadow-cljs. After updating the js-joda packages to these versions:

    "@js-joda/core": "5.6.1",
    "@js-joda/locale_en-us": "4.8.11",
    "@js-joda/timezone": "2.18.2"

I get the following error when trying to call t/formatter:

Uncaught Error: Locale is nil, try adding a require '[tick.locale-en-us]

But of course, I already have [tick.locale-en-us] in that namespace's requires.

zilti avatar Nov 01 '23 16:11 zilti

maybe the way to consume the locale has changed a bit?

instructions: https://js-joda.github.io/js-joda/manual/Locale.html

looks pretty similar so there's probably just a little tweak needed

henryw374 avatar Nov 01 '23 17:11 henryw374

I just upgraded and hit this as well, I also see TypeError: Cldr.load is not a function before the locale is not available removing the locale makes the cldr.load error go away.

This is the error after Cldr.load Uncaught Error: Locale is nil, try adding a require '[tick.locale-en-us]

olymk2 avatar Apr 11 '24 15:04 olymk2