Fork me on GitHub
#duct
<
2020-06-21
>
Kevin12:06:59

@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?

Kevin12:06:55

I'm not using the Shadow-cljs' built-in HTTP server though. Maybe that has something to do with it?

Kevin12:06:00

I just want to use it as a compiler / watcher

Kevin12:06:46

Nevermind, I have to set the classpaths in my deps.edn file instead

g7s13:06:11

@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.

Kevin13:06:35

Yeah, I just had to use my Clojure classpath instead of Clojurescript

Kevin13:06:15

I thought that the shadow-cljs map in config.edn would handle that for me, but it actually makes sense that it doesn't

Kevin13:06:54

Also in the README it has a :source-paths key, but I don't think it does anything?

g7s13:06:58

Aah yeah you are right you have to use the clj claaspath

g7s13:06:18

Yes as I told you it is a real mess

g7s13:06:34

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

g7s13:06:39

I will update the readme asap

Kevin13:06:51

oh, that actually sounds awesome

👍 3
Kevin13:06:57

dev=> (duct.repl.shadow-cljs/cljs-repl)
:missing-nrepl-middleware
Any idea? 😄

Kevin13:06:04

nrepl middleware?

g7s14:06:23

Do you use cider?

Kevin14:06:46

No, I started this direction from the terminal with clj

g7s14:06:44

Aah ok then I guess you should have a nrepl-middleware

Kevin14:06:33

Ah ok, I'll look into it, thanks

g7s14:06:19

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