4 ms·
I'm not sure if this is the 'right' way to do it, but here's how I do it with Cursive (should also work with other editors): 1. In project.clj, add the nrepl p
by delegate 10y ago
I'm not sure if this is the 'right' way to do it, but here's how I do it with Cursive (should also work with other editors):
1. In project.clj, add the nrepl port for figwheel:
:figwheel {
:nrepl-port 7002
}
2. Start figwheel with `lein figwheel` and open the page in the browser
4. In IntelliJ, Create a new Clojure REPL -> Remote, pick "Connect to server" and enter "localhost" and 7002 for port.
5. Start the REPL, it should connect to the figwheel repl, then type (cljs) and you should be in the ClojureScript repl.
6. Test that it works:
(js/alert "Hello")