This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-02
Channels
- # announcements (3)
- # aws (8)
- # babashka (87)
- # babashka-sci-dev (3)
- # beginners (34)
- # calva (35)
- # clerk (2)
- # clj-commons (47)
- # cljdoc (10)
- # cljs-dev (21)
- # clojure (19)
- # clojure-android (1)
- # clojure-austin (2)
- # clojure-europe (30)
- # clojure-nl (1)
- # clojure-norway (67)
- # clojure-uk (9)
- # clojuredesign-podcast (7)
- # clojurescript (24)
- # code-reviews (20)
- # cursive (6)
- # datomic (12)
- # emacs (14)
- # events (1)
- # fulcro (7)
- # gratitude (1)
- # hoplon (8)
- # hyperfiddle (23)
- # juxt (22)
- # meander (11)
- # nyc (3)
- # overtone (2)
- # podcasts-discuss (1)
- # reagent (3)
- # releases (1)
- # sci (27)
- # shadow-cljs (73)
- # squint (4)
- # thejaloniki (3)
- # xtdb (7)
I am having some trouble using Tick from Clojurescript.
I am getting this error in the browser console.
user.cljs:8 Locale is nil, try adding a require '[tick.locale-en-us]
I have these in my package.json
"@js-joda/core": "^5.6.1",
"@js-joda/locale_en-us": "^4.8.11",
and am using tick/tick {:mvn/version "0.7.5"}
someone (you work with? 😉 ) just raised this yesterday actually - see https://github.com/juxt/tick/issues/192 if you use the versions brought in from deps.cljs dependencies of tick it will work
I am solo. But yea this is the same issue.
I also have "@js-joda/timezone": "2.18.2"
and still get this error.
Is there documentation on what is the working version configurations?
no docs, other than deps.cljs files. which ofc is the official way for cljs libs to depend on npm. although being clojurescript official is relative. one sec I will see what they are
I'm building a custom interactive candlestick chart and kind of blocked with this not working.
Oh I am not familiar with deps.cljs as a file
or... as per docs clj -m cljs.main --install-deps
will put them in your package.json. but only if you dont have them already afaik
I have a tendency to skim docs sometimes. So I did miss that.
I just saw the error and did a yarn add
then started debugging from there 😅
yeah no worries. afaik these days the trend is for libs not to provide deps.cljs. so maybe thats the way to go. and then docs point ppl to test build to show what npm ver it has been tested on
That script added a bunch of other what seems unrelated packages. I guess this is with other libraries I am using?
"katex": "^0.12.0",
"markdown-it": "^12.3.2",
"markdown-it-block-image": "^0.0.3",
"markdown-it-footnote": "^3.0.3",
"markdown-it-texmath": "^0.9.7",
"markdown-it-toc-done-right": "^4.2.0",
"punycode": "^2.1.1",
Well this did the trick. Thank you!
I have required [tick.locale-en-us]