@g7s Hey, I'm trying out https://github.com/g7s/module.shadow-cljs , basically I copy pasted my current shadow-cljs.edn
into my config.edn
. But I'm getting the error The required namespace "myapp.core" is not available.
Any idea?
I'm not using the Shadow-cljs' built-in HTTP server though. Maybe that has something to do with it?
I just want to use it as a compiler / watcher
Nevermind, I have to set the classpaths in my deps.edn
file instead
@kevin.van.rooijen have you sorted it out yet? Sorry the readme is a mess.. I am postponing to write a proper one all the time.
Yeah, I just had to use my Clojure classpath instead of Clojurescript
I thought that the shadow-cljs map in config.edn would handle that for me, but it actually makes sense that it doesn't
Also in the README it has a :source-paths
key, but I don't think it does anything?
Aah yeah you are right you have to use the clj claaspath
Yes as I told you it is a real mess
:P
There is also a cljs-repl
function that you can use in your dev.clj
from this namespace https://github.com/g7s/module.shadow-cljs/blob/master/src/duct/repl/shadow_cljs.clj
I will update the readme asap
oh, that actually sounds awesome
dev=> (duct.repl.shadow-cljs/cljs-repl)
:missing-nrepl-middleware
Any idea? 😄nrepl middleware?
Do you use cider?
No, I started this direction from the terminal with clj
Aah ok then I guess you should have a nrepl-middleware
Ah ok, I'll look into it, thanks
Np. To connect to the cljs repl you need a nrepl middleware dependency except if you use cider-nrepl in which case it is included automatically by shadow