If in a .cljs file I define a file like this:
main.cljs
(ns project.main
(:use [project.secondfile :only [my-var]]))
(js/alert my-var)
secondfile.cljs
(ns project.secondfile)
(def my-var "Hi")
I get a "Referred var project.secondfile/my-var does not exist at src-cljs/main.cljs". However, it works normally in the browser as both are compiled (and with compilations :whitespace they can reference each other just fine). But obviously, it doesn't work in the bREPL as they aren't referring to each other.
Is this something unavoidable or I'm doing something wrong?
Thanks!