This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-30
Channels
- # aleph (4)
- # announcements (5)
- # architecture (1)
- # aws (5)
- # babashka (12)
- # beginners (143)
- # chlorine-clover (4)
- # cider (16)
- # clj-kondo (44)
- # cljfx (26)
- # cljsrn (2)
- # clojure (34)
- # clojure-europe (28)
- # clojure-gamedev (1)
- # clojure-nl (3)
- # clojure-provo (2)
- # clojure-spec (6)
- # clojure-uk (17)
- # clojurescript (99)
- # code-reviews (6)
- # core-async (15)
- # cryogen (9)
- # cursive (14)
- # data-science (1)
- # datomic (16)
- # duct (1)
- # events (4)
- # exercism (1)
- # figwheel-main (3)
- # fulcro (3)
- # hugsql (7)
- # leiningen (4)
- # malli (15)
- # off-topic (13)
- # pathom (8)
- # re-frame (7)
- # reitit (35)
- # remote-jobs (1)
- # sci (10)
- # shadow-cljs (32)
- # sql (5)
- # tools-deps (102)
- # tree-sitter (3)
- # uncomplicate (7)
- # vim (40)
- # xtdb (8)
Any tips for troubleshooting when shadow-cljs (2.11.1) gets stuck? I run
$ node_modules/.bin/shadow-cljs watch :main
shadow-cljs - config: /Users/holyjak/Work/customersupport-app/shadow-cljs.edn
shadow-cljs - starting via "clojure"
DEPRECATED: Libs must be qualified, change refactor-nrepl => refactor-nrepl/refactor-nrepl (/Users/holyjak/.clojure/deps.edn)
DEPRECATED: Libs must be qualified, change mount => mount/mount (deps.edn)
DEPRECATED: Libs must be qualified, change hiccup => hiccup/hiccup (deps.edn)
# now it printed nothing more for minutes...
server
has the same issue.Thank you! Running clj and starting it manually from there worked just fine! 🎉
Hey all... I THINK this is a simple process but just wanted to check in to be sure. I'm moving toward release for https://github.com/littleredcomputer/sicmutils, and want to add a shadow-cljs.edn before I do this
Am I right in thinking that... maybe this actually has nothing to do with library release, and more / all with developer experience?
a library does not need a shadow-cljs.edn at all and in fact would have no effect whatsoever
that's the reassurance I was looking for! just trying to find my feet
I hacked up a test profile months ago with lein-doo
https://github.com/littleredcomputer/sicmutils/blob/master/project.clj#L71 and I suspect that the testing experience would be way better with shadow-cljs... also I'm finally at a phase where I can start developing UI components off of this work, so it's time to switch. just wanted to make sure I wasn't missing any pieces wrt library
just to understand what you are talking about here. you want to bundle everything up as a regular library that people will add to their :dependencies
and require in their ns
?
CLJS libs are not compiled at all when doing that. you just include the source files.
yes, I didn't know if, for example, there were some other path these days for dependencies, like direct git deps, that needed a shadow-cljs.edn
for clojurescript
the only place where someone needs a shadow-cljs.edn
is in their project. that is the only relevant one. all others have no effect.
👍 thank you!
probably what I should do if I want to enable git deps is move this build to tools.edn
which is unrelated to shadow, as you say
I'm getting a warning I don't understand:
------ WARNING #1 - :undeclared-var --------------------------------------------
File: /Users/borkdude/.gitlibs/libs/borkdude/sci/971614de14a6fd00e6991d1afd6c0ce9fbda104c/src/sci/impl/fns.cljc:51:32
--------------------------------------------------------------------------------
48 | (throw-arity fn-name macro? args))
49 | ret)))
50 | ctx #?(:clj (.assoc ctx :bindings bindings)
51 | :cljs (-assoc ctx :bindings bindings))
--------------------------------------^-----------------------------------------
Use of undeclared Var sci.impl.fns/clojure
this can happen if you have any fully-qualified names in CLJC code that ends up in a CLJS branch
you can maybe look at the generated code looking for clojure.
maybe that provides a better clue