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

Invalid :refer, var java.time.temporal/WeekFields does not exist #25

Open
jeans11 opened this issue Nov 25, 2022 · 1 comment
Open

Invalid :refer, var java.time.temporal/WeekFields does not exist #25

jeans11 opened this issue Nov 25, 2022 · 1 comment

Comments

@jeans11
Copy link

jeans11 commented Nov 25, 2022

Hi!

I'm using cljc.java-time on clj and cljs and I get an error when I require the namespace cljc.java-time.temporal.week-fields in a cljs file.
Screenshot 2022-11-25 at 21 55 13
Any idea of what this namespace failed? I have tested with chrono-field and it's ok.

@henryw374
Copy link
Owner

hello.

I can see the underlying js does exist: https://js-joda.github.io/js-joda/file/packages/locale/src/temporal/WeekFields.js.html#lineNumber552

but it is in 'locale' package, not the core (which is the thing imported by default by cljc.java-time).

locale stuff is an extra dependency, which I wrote about here https://juxt.github.io/tick/#_optional_timezone_locale_data_for_reducing_build_size

probably in that ns it could try to load it, and if you have added a locale package to your build then it would work, otherwise blow up.

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

2 participants