This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-26
Channels
- # babashka (12)
- # beginners (53)
- # cider (6)
- # clj-kondo (2)
- # cljdoc (18)
- # clojars (6)
- # clojure (72)
- # clojure-europe (27)
- # clojurescript (85)
- # component (2)
- # conjure (4)
- # datalevin (43)
- # graalvm (8)
- # hyperfiddle (17)
- # lsp (72)
- # malli (5)
- # off-topic (1)
- # pathom (6)
- # perun (6)
- # polylith (10)
- # releases (1)
- # shadow-cljs (30)
- # xtdb (10)
Continuing my migration from lein-figwheel
.
shadow-cljs watch app
warns me about "WARNING: shadow-cljs not installed in project."
However it looks like it still continues, so I'm not sure why I should install it in the project...? (The doc link associated with this warning appears to be broken)
I also have some dependency issues.
> The required JS dependency "moment" is not available, it was required by "cljsjs/moment.cljs".
I looked into shadow-cljsjs
and moment appears to be defined in it. Am I doing something wrong?
react
worked, so I'm a little confused as to why it fails with moment
npm install moment
downloads the dependency, but I dislike the manual step 😢
Hmmm
It says that the dependency codemirror.addon.display.autorefresh
is not available, but I required it: ["codemirror.addon.display.autorefresh"]
(those addons come with codemirror, which I already installed)
it should be installed via npm install shadow-cljs
. it provides a couple other dependencies you might need when working with shadow-cljs
later if you want to install all packages listen in package.json you just npm ci
for clean install
error in process sentinel: Could not start nREPL server: Error loading shadow.cljs.devtools.server.nrepl: Unexpected error macroexpanding if-ns at (cider/piggieback.clj:22:1).
Syntax error compiling var at (/tmp/form-init3679489719716306863.clj:1:16584).
Unable to resolve var: shadow.cljs.devtools.server.nrepl/middleware in this context
(╯°□°)╯︵ ┻━┻Looks like this is caused by :nrepl-middleware [shadow.cljs.devtools.server.nrepl/middleware]
Is it correct that shadow does not support importing CSS into JS files even when using an external provider? I used webpack and their styles loader, can interact with JS imports, but when I try import 'style.css'
the build fails.
css is supported with :js-provider :external
, although still not recommended via ns
:require
If i import a stylesheet into a JS file, and then include that directory in my shadow build, the compilation fails and says "cannot identify as CLJS resource"
That's what I mean yeah, a JS file processed by shadow