This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-07
Channels
- # announcements (13)
- # atom-editor (3)
- # babashka (53)
- # beginners (28)
- # clojure (30)
- # clojure-australia (4)
- # clojure-europe (22)
- # clojure-germany (1)
- # clojure-italy (6)
- # clojure-nl (3)
- # clojure-norway (14)
- # clojure-spec (8)
- # clojure-uk (8)
- # clojurescript (19)
- # cursive (33)
- # datomic (4)
- # defnpodcast (6)
- # events (3)
- # fulcro (3)
- # graalvm (77)
- # jobs (2)
- # juxt (11)
- # podcasts-discuss (1)
- # reitit (1)
- # releases (2)
- # remote-jobs (2)
- # sci (1)
- # shadow-cljs (27)
- # sql (6)
- # testing (10)
- # tools-deps (36)
- # vim (4)
- # xtdb (15)
I’m having some trouble getting tick formatting to working with CLJS. I’ve followed the docs but continue to see
SHADOW import error /<path>/.shadow-cljs/builds/test/dev/out/cljs-runtime/<file>.js
/<path>/.shadow-cljs/builds/test/dev/out/cljs-runtime/tick/format.cljc:29
(defn ^DateTimeFormatter formatter
Error: Locale is nil, try adding a require '[tick.locale-en-us]
though I have required [tick.locale-en-us]
.👍 2
Hmm. Can you check jsjoda locale is in package.json? Although tbh I'd expect some other error if it weren't.
In package.json
I have
"@cljs-oss/module-deps": "^1.1.1",
"@js-joda/core": "^1.12.0",
"@js-joda/locale_en-us": "3.1.1",
"@js-joda/timezone": "2.2.0",
Shadow is 2.8.110
(will update), tick is 0.4.24-alpha
.The ns require just loads the joda locale and sets a variable https://github.com/juxt/tick/blob/master/src/tick/locale_en_us.cljc