bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 209 forks source link

Spurious error messages on requiring namespaces in figwheel-sidecar REPL #585

Closed raxod502 closed 7 years ago

raxod502 commented 7 years ago
bhauman commented 7 years ago

The classpath is different when you use lein figwheel and lein repl. The figwheel plugin adds the all the ClojureScript paths ["src/cljs" "src/cljc" "env/dev/cljs"] to the classpath. And in order for the compiler to find the source code it searches the classpath. In many cases things will still work without setting the classpath correctly.

You will have to add ["src/cljs" "src/cljc" "env/dev/cljs"] the top level :source-paths in your project.clj to get the behavior you want.