Fork me on GitHub
#cursive
<
2021-03-07
>
mikejcusack18:03:36

That error is correct. The namespace isn't matching the directory structure. If you click the suggestion for it the proper directory structure will be created. In this case would be src/cursive_shadow_cljs/core.cljs.

mikejcusack18:03:01

Those deps are out of date. Clojure is at at 1.10.2 and ClojureScript at 1.10.773.

mikejcusack18:03:23

Try File -&gt; Invalidate Cache / Restart

cfleming20:03:30

That looks like it might be a network error of some kind? I’m not sure what “Cannot reconnect” means otherwise.

mikejcusack18:03:36

You want the clojure and clojurescript deps in :deps at the root rather than a dev alias extra dep.

mikejcusack19:03:06

Here's an example deps.edn for a shadow-cljs project with reagent pulled in:

{:deps {org.clojure/clojurescript {:mvn/version "1.10.773"}
        reagent/reagent {:mvn/version "1.0.0"}}
 :paths ["src"]
 :aliases {:dev {:extra-deps {binaryage/devtools {:mvn/version "1.0.2"}}}
           :shadow {:extra-deps {thheller/shadow-cljs {:mvn/version "2.11.13"}}
                    :main-opts ["-m" "shadow.cljs.devtools.cli"]}}}

mikejcusack19:03:51

I'd recommend following the official user guide for current configuration: https://shadow-cljs.github.io/docs/UsersGuide.html