duct

kwrooijen 2020-06-21T12:14:59.163Z

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

kwrooijen 2020-06-21T12:17:55.163600Z

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

kwrooijen 2020-06-21T12:18:00.163800Z

I just want to use it as a compiler / watcher

kwrooijen 2020-06-21T12:23:46.164200Z

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

g7s 2020-06-21T13:47:11.167200Z

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

kwrooijen 2020-06-21T13:47:35.167600Z

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

kwrooijen 2020-06-21T13:48:15.168300Z

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

kwrooijen 2020-06-21T13:48:54.169500Z

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

g7s 2020-06-21T13:48:58.169600Z

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

g7s 2020-06-21T13:49:18.170100Z

Yes as I told you it is a real mess

g7s 2020-06-21T13:49:21.170300Z

:P

g7s 2020-06-21T13:50:34.172100Z

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

g7s 2020-06-21T13:51:39.172600Z

I will update the readme asap

kwrooijen 2020-06-21T13:52:51.172900Z

oh, that actually sounds awesome

👍 1
kwrooijen 2020-06-21T13:58:57.173300Z

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

kwrooijen 2020-06-21T13:59:04.173500Z

nrepl middleware?

g7s 2020-06-21T14:03:23.173800Z

Do you use cider?

kwrooijen 2020-06-21T14:03:46.174100Z

No, I started this direction from the terminal with clj

g7s 2020-06-21T14:04:44.175300Z

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

kwrooijen 2020-06-21T14:05:33.175800Z

Ah ok, I'll look into it, thanks

g7s 2020-06-21T14:07:19.178Z

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