This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-04
Channels
- # announcements (3)
- # aws (13)
- # babashka (10)
- # beginners (30)
- # biff (1)
- # calva (59)
- # chlorine-clover (11)
- # cider (3)
- # circleci (2)
- # clojars (22)
- # clojure (21)
- # clojure-europe (2)
- # clojurescript (10)
- # core-typed (2)
- # fulcro (8)
- # girouette (12)
- # graphql (1)
- # helix (6)
- # inf-clojure (4)
- # joyride (6)
- # leiningen (7)
- # off-topic (3)
- # pathom (44)
- # polylith (13)
- # shadow-cljs (44)
- # tools-deps (1)
no source by id: [:shadow.build.classpath/resource "benjamin/lawnmower/core.cljs"]
{:id [:shadow.build.classpath/resource "benjamin/lawnmower/core.cljs"]}
ExceptionInfo: no source by id: [:shadow.build.classpath/resource "benjamin/lawnmower/core.cljs"]
shadow.build.data/get-source-by-id (data.clj:172)
shadow.build.data/get-source-by-id (data.clj:169)
shadow.build.compiler/remove-dead-js-deps/remove-fn--15466/fn--15467 (compiler.clj:1225)
clojure.core/complement/fn--5737 (core.clj:1455)
clojure.core/filter/fn--5962 (core.clj:2834)
yo I don't get why I get this errorwhat did you eval though? REPL evals don't go through remove-dead-js-deps
? so dunno why that would show up there?
still no clue how you'd get that error in the REPL. if you run into it again let me know though.
which version do you use? if its something super old I can see this happening. with the latest not so much.
well do you use only shadow-cljs.edn or do you use deps.edn/project.clj to manage dependencies?
does shadow-cljs have a lein-ancient equivalent? i.e checking dependency versions for newer versions
just starting a new shadow project and can’t seem to get off the ground
can anyone spot what is wrong with this picture?
it’s saying my namespace is not available
not trying to do anything complicated
ah it was a directory structure issue
all sorted
New to clojurescript and shadow-cljs getting the following warnings when i run the following
npx shadow-cljs watch frontend
and not sure how to troubleshoot. App compiles and runs.
------ WARNING #1 - :undeclared-var --------------------------------------------
Resource: cljs/analyzer.cljc:4403:12
--------------------------------------------------------------------------------
4400 | []
4401 | (try
4402 | @(ns-resolve 'clojure.tools.reader '*alias-map*)
4403 | (catch Throwable t
------------------^-------------------------------------------------------------
Use of undeclared Var cljs.analyzer/Throwable
--------------------------------------------------------------------------------
4404 | nil)))
4405 |
4406 | #?(:clj
4407 | (defn forms-seq*
--------------------------------------------------------------------------------
------ WARNING #2 - :undeclared-var --------------------------------------------
Resource: cljs/analyzer.cljc:4402:7
--------------------------------------------------------------------------------
4399 | "Returns clojure.tools.reader/*alias-map* for bridging"
4400 | []
4401 | (try
4402 | @(ns-resolve 'clojure.tools.reader '*alias-map*)
-------------^------------------------------------------------------------------
Use of undeclared Var cljs.analyzer/ns-resolve
--------------------------------------------------------------------------------
4403 | (catch Throwable t
4404 | nil)))
4405 |
4406 | #?(:clj
--------------------------------------------------------------------------------
@kbosompem this is a bug in the latest clojurescript release. it is fixed in master but no new release available yet. if you use deps.edn to manage dependencies you can use a git dependency to get it
are you trying a self-hosted build? otherwise you shouldn't be including cljs.analyzer anyways?
@thheller thanks for the quick reply. I'm trying to follow the examples here https://github.com/metosin/reitit/blob/master/examples/frontend-re-frame/src/cljs/frontend_re_frame/core.cljs this is what my shadow-cljs.edn file looks like
;; shadow-cljs configuration
{:source-paths
["src/cljs"]
:dependencies
[[reagent "1.1.1"]
[cljs-ajax "0.8.4"]
[re-frame "0.10.6"]
[metosin/reitit "0.5.11"]]
:builds
{:frontend {:target :browser
:output-dir "resources/public/js"
:asset-path "/js"
:release {:compiler-options {:optimizations :simple}}
:modules {:main {:init-fn spcmig.core/run}}}}}
looks fine but I'm not sure if any of those may be including cljs.analyzer
? seems like it shouldn't but I don't know
[reitit.coercion.spec :as rss]
does require cljs.analyzer, that's why I reported the issue a few minutes ago 🙂