This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-25
Channels
- # announcements (8)
- # aws (50)
- # aws-lambda (6)
- # babashka (25)
- # beginners (119)
- # bristol-clojurians (5)
- # calva (25)
- # chlorine-clover (23)
- # cider (6)
- # cljs-dev (125)
- # clojure (63)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-dev (48)
- # clojure-europe (11)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-spec (3)
- # clojure-uk (66)
- # clojurescript (14)
- # core-logic (5)
- # datomic (13)
- # emacs (10)
- # events (2)
- # fulcro (37)
- # graalvm (11)
- # hoplon (95)
- # jobs-discuss (9)
- # juxt (11)
- # kaocha (16)
- # meander (13)
- # off-topic (24)
- # pedestal (4)
- # re-frame (36)
- # reagent (10)
- # reitit (15)
- # ring-swagger (5)
- # shadow-cljs (23)
- # spacemacs (2)
- # sql (13)
- # tools-deps (32)
- # xtdb (11)
Error with react-datepicker. I have been trying to use react-datepicker in my app with shadow-cljs. I installed react-datepicker and react-bootstrap, with pm. Then I required in the cljs namespace with ["react-datepicker" :as ds]. While compiling I am getting the following error: has anyone got this error before? Any hint is appreciated. Spent quite a bit of time on this.. IllegalArgumentException: No matching field found: getSourceName for class com.google.javascript.jscomp.JSError clojure.lang.Reflector.getInstanceField (Reflector.java:397) clojure.lang.Reflector.invokeNoArgInstanceMember (Reflector.java:440) shadow.build.closure/js-error-xf/fn--11865 (closure.clj:536) clojure.core/map/fn--5862/fn--5863 (core.clj:2742) clojure.core.protocols/iter-reduce (protocols.clj:49) clojure.core.protocols/fn--8140 (protocols.clj:75) clojure.core.protocols/fn--8140 (protocols.clj:75) clojure.core.protocols/fn--8088/G--8083--8101 (protocols.clj:13) clojure.core/transduce (core.clj:6884) clojure.core/into (core.clj:6899) clojure.core/into (core.clj:6887) shadow.build.closure/log-warnings (closure.clj:1092) shadow.build.closure/log-warnings (closure.clj:1088) shadow.build.closure/convert-sources-simple* (closure.clj:1860) shadow.build.closure/convert-sources-simple* (closure.clj:1714) shadow.build.closure/convert-sources-simple (closure.clj:2000) shadow.build.closure/convert-sources-simple (closure.clj:1952) shadow.build.compiler/maybe-closure-convert (compiler.clj:1117) shadow.build.compiler/maybe-closure-convert (compiler.clj:1110) shadow.build.compiler/compile-all (compiler.clj:1368) shadow.build.compiler/compile-all (compiler.clj:1229) shadow.build.api/compile-sources (api.clj:255) shadow.build.api/compile-sources (api.clj:247) shadow.build/compile (build.clj:406) shadow.build/compile (build.clj:397) shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:316) shadow.cljs.devtools.server.worker.impl/build-compile (impl.clj:302) shadow.cljs.devtools.server.worker.impl/do-resource-update (impl.clj:942) shadow.cljs.devtools.server.worker.impl/do-resource-update (impl.clj:905) shadow.cljs.devtools.server.util/server-thread/fn--15324/fn--15325/fn--15333 (util.clj:285) shadow.cljs.devtools.server.util/server-thread/fn--15324/fn--15325 (util.clj:284) shadow.cljs.devtools.server.util/server-thread/fn--15324 (util.clj:257) java.lang.Thread.run (Thread.java:834)
@hkrishnan2005 that is caused by a dependency conflict on the closure-compiler version. common if you use lein. you need to ensure that you have the version shadow-cljs wants which would be
[com.google.javascript/closure-compiler-unshaded "v20191027"]
[org.clojure/google-closure-library "0.0-20191016-6ae1f72f"]
[org.clojure/google-closure-library-third-party "0.0-20191016-6ae1f72f"]
not sure if this is related to shadow-cljs or not, but when working with swedish letters "åäö"
, they end up as "???" in the repl.
and which client? its all utf-8 so if you terminal doesn't show that properly its your terminal
$ shadow-cljs browser-repl
shadow-cljs - config: /mnt/c/Users/thheller/code/shadow-cljs/shadow-cljs.edn
shadow-cljs - connected to server
[:browser-repl] Configuring build.
[:browser-repl] Compiling ...
[:browser-repl] Build completed. (135 files, 134 compiled, 0 warnings, 6.31s)
cljs.user=> "åäö"
"åäö"
@hindol.adhya how do I check that? 🙂 unix-noob
jona@Jonas-MacBook-Pro frontend % locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
now when I run locale it says that LANG="UTF-8"
, but I still get ??? when in the cljs-repl
I vaguely remember somone had issues with :refer-clojure :rename
and shadow-cljs, I’m now facing an issue with :refer-clojure :only
in my .clj file with macros, the file is expected to work, but fails with shadow-cljs with a stack trace originating from shadow.build.macros$load_macros
, I didn’t find a relevant issue in shado-cljs github repo, just wondering if I should dig into it and create one