shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
Andrei Stan 2020-10-10T08:47:03.367500Z

Hello, guys! I just started learning clojure/clojurescript and i am trying to use re-com (https://github.com/day8/re-com) in my app built with shadow-cljs. When compiling, i receive an error :

shadow-cljs - updating dependencies
shadow-cljs - dependencies updated
shadow-cljs - HTTP server available at <http://localhost:3000>
shadow-cljs - server version: 2.8.110 running at <http://localhost:9630>
shadow-cljs - nREPL server started on port 3333
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
[:app] Build failure:
------ ERROR -------------------------------------------------------------------
 File: /home/nas/proiecte/homebank-ofx/src/main/netdava/homebank/app/hello.cljs
no source by provide: recom.core
{:provide recom.core}
ExceptionInfo: no source by provide: recom.core
        shadow.build.data/get-source-id-by-provide (data.clj:186)
        shadow.build.data/get-source-id-by-provide (data.clj:183)
        shadow.build.data/get-source-by-provide (data.clj:189)
        shadow.build.data/get-source-by-provide (data.clj:188)
        shadow.build.compiler/fn--11892 (compiler.clj:340)
        shadow.build.compiler/fn--11892 (compiler.clj:322)
        clojure.lang.MultiFn.invoke (MultiFn.java:234)
        shadow.build.compiler/do-compile-cljs-resource/fn--11967/fn--11976 (compiler.clj:623)
        shadow.build.compiler/do-compile-cljs-resource/fn--11967 (compiler.clj:618)
        shadow.build.compiler/do-compile-cljs-resource (compiler.clj:562)
        shadow.build.compiler/do-compile-cljs-resource (compiler.clj:520)
        shadow.build.compiler/maybe-compile-cljs/fn--12065 (compiler.clj:897)
        shadow.build.compiler/maybe-compile-cljs (compiler.clj:896)
        shadow.build.compiler/maybe-compile-cljs (compiler.clj:872)
        shadow.build.compiler/par-compile-one (compiler.clj:1005)
        shadow.build.compiler/par-compile-one (compiler.clj:960)
        shadow.build.compiler/par-compile-cljs-sources/fn--12101/iter--12123--12127/fn--12128/fn--12129/fn--12130 (compiler.clj:1078)
        clojure.core/apply (core.clj:665)
        clojure.core/with-bindings* (core.clj:1973)
        clojure.core/with-bindings* (core.clj:1973)
        clojure.core/apply (core.clj:669)
        clojure.core/bound-fn*/fn--5749 (core.clj:2003)
        java.util.concurrent.FutureTask.run (FutureTask.java:264)
        java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
        java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
        java.lang.Thread.run (Thread.java:834)
Here is my shadow-cljs.edn:
{:builds
 {:app {:asset-path "/js"
        :modules {:main {:init-fn netdava.homebank.app.core/main}}
        :output-dir "public/js"
        :target :browser}
  :csv2json {:target :node-library
             :output-to "csv2json.js"
             :output-dir "out/csv2json-lib"
             :exports-fn netdava.homebank.csv/generate-exports}
  :parse-demo {:target :node-script
               :main netdava.homebank.csv-demo/main
               :output-to "out/parse-demo.js"}
  :dir-converter {:target :node-script
               :main netdava.homebank.dir-converter/main
               :output-to "out/dir-converter.js"}
  :test {:ns-regexp "-nodetest$"
         :output-to "out/test.js"
         :target :node-test
         :compiler-options {:infer-externs :auto}}
  :ci {:target :karma
       :output-to "out/ci.js"
       :ns-regexp "-test$"}}
 :dependencies [[bux "0.3.0"]
                [devcards "0.2.6"]
                [re-com "2.9.0"]
                [reagent "0.8.1"]]
 :dev-http {3000 "public"}
 :nrepl {:port 3333}
 :source-paths ["src/main" "src/csv2json" "src/test"]}
thanks in advance.

thheller 2020-10-10T09:22:36.367900Z

@andrei.stan the ns is re-com.core not recom.core?

thheller 2020-10-10T09:23:02.368200Z

also .. upgrade. you are on an old version.

thheller 2020-10-11T08:59:12.378200Z

looks like you have something undefined that shouldn't be [thing {:foo "bar"}] where thing is undefined or so

Andrei Stan 2020-10-10T12:46:08.368300Z

hi, what exactly should i upgrade?

thheller 2020-10-10T12:51:30.368500Z

shadow-cljs