juxt

grounded_sage 2023-11-02T12:23:35.076409Z

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"}

2023-11-02T12:26:54.580469Z

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

grounded_sage 2023-11-02T12:37:55.928299Z

I am solo. But yea this is the same issue. I also have "@js-joda/timezone": "2.18.2" and still get this error.

grounded_sage 2023-11-02T12:38:42.326379Z

Is there documentation on what is the working version configurations?

2023-11-02T12:38:53.289509Z

ok weird coincidence then. ok but its the locale+core deps that cause this issue

2023-11-02T12:40:09.428429Z

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

grounded_sage 2023-11-02T12:40:34.561419Z

I'm building a custom interactive candlestick chart and kind of blocked with this not working.

grounded_sage 2023-11-02T12:43:13.591879Z

Oh I am not familiar with deps.cljs as a file

grounded_sage 2023-11-02T12:43:26.861249Z

so I add those into my package json?

👍 1
2023-11-02T12:43:34.990719Z

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

grounded_sage 2023-11-02T12:45:09.602099Z

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 😅

2023-11-02T12:46:45.533809Z

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

grounded_sage 2023-11-02T12:48:44.797239Z

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",

2023-11-02T12:49:10.342279Z

yes 😆

2023-11-02T12:49:47.657599Z

lets hope leftpad not in there

grounded_sage 2023-11-02T12:50:22.027609Z

lol

grounded_sage 2023-11-02T12:51:33.448149Z

Well this did the trick. Thank you!

2023-11-02T12:53:52.528889Z

👍

grounded_sage 2023-11-02T12:23:59.853439Z

I have required [tick.locale-en-us]