This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-21
Channels
- # announcements (10)
- # aws (10)
- # babashka (23)
- # beginners (111)
- # biff (8)
- # calva (25)
- # clj-kondo (9)
- # cljsrn (4)
- # clojure (72)
- # clojure-belgium (6)
- # clojure-europe (50)
- # clojure-germany (2)
- # clojure-nl (1)
- # clojure-norway (6)
- # clojure-uk (1)
- # datahike (3)
- # emacs (10)
- # graalvm (19)
- # graphql (3)
- # juxt (7)
- # kaocha (9)
- # malli (23)
- # nbb (20)
- # pathom (17)
- # pedestal (6)
- # polylith (11)
- # portal (8)
- # remote-jobs (3)
- # shadow-cljs (18)
- # sql (3)
- # tools-deps (20)
I'm using tick (0.5.0; tick.core and tick.locale-en-us) with shadow-cljs and getting
------ WARNING #1 - -----------------------------------------------------------
File: ~/.m2/repository/tick/tick/0.5.0/tick-0.5.0.jar!/tick/locale_en_us.cljc:5:15
--------------------------------------------------------------------------------
2 | #?(:cljs (:require ["@js-joda/locale_en-us" :as js-joda-locale])))
3 |
4 | ; doing this for the one-arity tick.core/formatter. (npm users don't get js/JSJodaLocale global automatically)
5 | #?(:cljs (set! js/JSJodaLocale js-joda-locale))
---------------------^----------------------------------------------------------
constant JSJodaLocale assigned a value more than once.
Original definition at externs.shadow.js:4
Couldn't find anything with google, github issues, here or juxt zulip, and I don't have any idea what's wrong 😕 Any pointers?it's only a warning. I guess there'll be a more shadow-friendly way to assign a var that it might already have as an extern
wouldn't a simple:
(when-not (exists? js/JSJodaLocale) (set! js/JSJodaLocale js-joda-locale))
address this?