This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-14
Channels
- # announcements (6)
- # architecture (5)
- # aws (4)
- # beginners (79)
- # boot (3)
- # boot-dev (7)
- # calva (21)
- # cider (17)
- # cljdoc (12)
- # clojure (83)
- # clojure-art (2)
- # clojure-belgium (2)
- # clojure-brasil (1)
- # clojure-estonia (2)
- # clojure-europe (3)
- # clojure-finland (5)
- # clojure-india (2)
- # clojure-italy (49)
- # clojure-losangeles (1)
- # clojure-nl (12)
- # clojure-spec (120)
- # clojure-sweden (2)
- # clojure-switzerland (4)
- # clojure-uk (31)
- # clojurescript (80)
- # data-science (17)
- # datavis (2)
- # datomic (31)
- # emacs (31)
- # figwheel-main (28)
- # fulcro (6)
- # jobs (2)
- # liberator (7)
- # luminus (1)
- # nrepl (2)
- # off-topic (51)
- # overtone (2)
- # pathom (4)
- # re-frame (28)
- # reitit (1)
- # rum (6)
- # shadow-cljs (26)
- # specter (2)
- # tools-deps (33)
- # yada (3)
I'm getting this error on an existing project I am revisiting and not sure where to start on fixing it.
cp: cannot stat 'PREFIX/example-deps.edn': No such file or directory
I've changed machines and thus downloaded new version of shadow etc
Seems to be related to using the :deps
config option
nvm this seems to be a clj on linux issue as I can't even run clj
repl
I would like to develop my server-side code in the same JVM as is delivering the HTML and javascript in order to avoid CORS issues. Ideally, I would start shadow-cljs and then connect to the nREPL server from Cursive and be off to the races. I couldn't find reference to this workflow in the shadow-cljs docs but I could have easily missed something.
Yes. The browser and the server communicate using sente
It will do that in production. During development, I'd like shadow-cljs to serve them up to get the benefits of live reloading.
Unless there is a method for getting shadow's live-reloading through my Clojure service
shadow-cljs' HTTP server is only a helper for people who are developing against some external service
Oh, interesting. Is there some example of manually loading the necessary JS code?
I think I'm very confused 🙂 In my current workflow, I have some cljs source and an index.html file. shadow-cljs serves the index html and my compiled cljs. There must be some additional JS that shadow-cljs injects in order to manage live reloading. Is that correct?
shadow-cljs, when in development mode, adds to your compiled code the stuff required for hot-reloading
> shadow-cljs, when in development mode, adds to your compiled code the stuff required for hot-reloading
This is the piece I was missing
I had assumed it was a separate JS file
Thanks!
@mark340 there's also a way to run JVM server code within the JVM server that shadow-cljs starts. There's info in the manual about that. https://shadow-cljs.github.io/docs/UsersGuide.html#clj-run