Skip to content

Tick fails with most recent js-joda version #192

Open

Description

@zilti

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.

Activity

  1. henryw374 commented on Nov 1, 2023

    @henryw374
    Collaborator

    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

  2. olymk2 commented on Apr 11, 2024

    @olymk2

    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]

  3. bortexz commented on Aug 7, 2025

    @bortexz

    I've also encountered this, has anyone found a workaround to make this work?

  4. henryw374 commented on Aug 7, 2025

    @henryw374
    Collaborator

    just use the version tick declares a dependency on.

    unless there's a reason you need to be on the latest? afaik versions since the one tick uses have not fixed anything significant

  5. bortexz commented on Aug 8, 2025

    @bortexz

    just use the version tick declares a dependency on.

    unless there's a reason you need to be on the latest? afaik versions since the one tick uses have not fixed anything significant

    Thanks Henry, indeed using henryw374/js-joda {:mvn/version "3.2.0-0"} in deps.edn instead of the newest js-joda 5 in package.json, and using the timezone and locale js-joda versions that tick requires on worked 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions