Fork me on GitHub

Hey guys, having some problems with reagent and cider. If I do lein figwheel and then in emacs I connect to nrepl and then try to eval a buffer with something like

(ns reagent-test.core
    (:require [reagent.core :as reagent :refer [atom]]
              [reagent.session :as session]
              [secretary.core :as secretary :include-macros true]
              [accountant.core :as accountant]))
I get
1. Unhandled
   Could not locate reagent/core__init.class or reagent/core.clj on classpath.
any ideas how to fix it?


not sure that it's reagent related, but if I remove everything except secretary, it works without problems


@colin.yates I used reagent template ( and its project.clj looks correct according to the instruction you posted


I mean specifically, did you do the

user> (use 'figwheel-sidecar.repl-api)
user> (cljs-repl)
after connecting to the figwheel repl?


I also have another problem if I try to start repl directly from cider

lifemappy.repl> (use 'figwheel-sidecar.repl-api)
lifemappy.repl> (cljs-repl)
NullPointerException   clojure.core/deref-future (core.clj:2186)


that might be worth fixing first then… what’s the full stack trace?


until that works I am not sure I would trust anything in the REPL...


@colin.yates: found the problem. I was trying to run cider repl instead of connecting it to the one, started from terminal with lein figwheel. After doing coder connect and then trying to run cljs-repl everything worked like a charm. Sorry for taking your time and thank you!


Hey guys. I am having some trouble when trying to use mapv in a reagent view. What is up with that?


I get:

Error rendering component  (in my-component > reagent1)
Uncaught Error: Invalid arity: 9


@profil: Looks like my-component is incorrectly passing 9 params to one of its children. Other than that, to get help you'll have to provide a lot more information than you have. simple_smile A Gist? A code fragment?