Skip to content
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

Tick fails with most recent js-joda version #192

Open
zilti opened this issue Nov 1, 2023 · 2 comments
Open

Tick fails with most recent js-joda version #192

zilti opened this issue Nov 1, 2023 · 2 comments

Comments

@zilti
Copy link
Contributor

zilti commented Nov 1, 2023

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.

@henryw374
Copy link
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

@olymk2
Copy link

olymk2 commented Apr 11, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants