This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-03
Channels
- # beginners (4)
- # boot (32)
- # braid-chat (57)
- # cljs-dev (2)
- # cljsrn (1)
- # clojure (18)
- # clojure-austin (1)
- # clojure-russia (245)
- # clojurescript (61)
- # component (5)
- # datomic (4)
- # hoplon (2)
- # off-topic (2)
- # om (3)
- # onyx (2)
- # parinfer (6)
- # proton (5)
- # protorepl (8)
- # re-frame (56)
- # reagent (1)
- # untangled (13)
- # yada (28)
Hi, I almost set up everything to finally start learning Untangled, but since I am total CLJS newbie, I stumbled upon this problem with todomvc app.. When I start client/figwheel REPL, and I am currently in cljs.user namespace, I get following error when I try to fetch core/app :
cljs.user=> core/app
WARNING: No such namespace: core, could not locate core.cljs, core.cljc, or Closure namespace "" at line 1 <cljs repl>
WARNING: Use of undeclared Var core/app at line 1 <cljs repl>
#object[ReferenceError ReferenceError: core is not defined]
anyone has idea why this happens? I reckon I should get a handle on this core/app without a problem, because as far as I see it, in dev/client/cljs/user.cljs this core namespace is required:
[untangled-todomvc.core :as core]
And strangely, (log-app-state) dumps the state to console as it should, and it uses thsi core/app inside itself, so dunno why my fetch of this atom doesn't work?!
To start it I just have a run.sh
with this in it: JVM_OPTS="-Ddev -Dtest" lein run -m clojure.main script/figwheel.clj
There's no real need to use a REPL when you have figwheel doing live code reloading for you.
@vmarcinko: So, the REPL is nice for looking at app state. Did you make sure you started a pplain clojure main REPL and not a nREPL? I don’t personally use nREPL because you have to mess with it a lot (piggieback etc) to get it to play well.
two of our guys use Emacs/Vim with nREPL, but I’m not sure what hoops they jump through.
@vmarcinko: Also, if you start more than one build, your REPL may be attached to a different browser tab than your app! E.g. see :cljs/quit
, which allows you to point the REPL at a particular browser tab/env (e.g. tests vs dev, etc)