I’m cahsing a nasty problem that is preventing me upgrading to clojurescript 1.10. In the figwheel REPL I see:
`
Starting clojure.main REPL... /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java Figwheel: Starting server at http://0.0.0.0:5449 Figwheel: Watching build - dev Compiling build :dev to “resources/public/js/compiled/predict3.js” from [“src/cljs” “src/cljc”]... Successfully compiled build :dev to “resources/public/js/compiled/predict3.js” in 1.055 seconds.```
So compilation works and the program runs
But later, if I try to load any namespace rooted at ‘predict3’ it fails but only under cljs 1.10
(require '[predict3.components.primitives])
---- Exception ----
predict3.components.primitives does not exist
---- Exception Stack Trace ----
clojure.lang.ExceptionInfo: predict3.components.primitives does not exist
#:cljs.repl{:error :invalid-ns}
at cljs.repl$ns__GT_input.invokeStatic (repl.cljc:204)
cljs.repl$ns__GT_input.invoke (repl.cljc:199)
cljs.repl$load_namespace.invokeStatic (repl.cljc:243)
cljs.repl$load_namespace.invoke (repl.cljc:234)
cljs.repl$load_dependencies$fn__6589.invoke (repl.cljc:260)
Full stack trace here: https://gist.github.com/gmp26/45630114a537f3cea2323b01bbfac150
Error occurs in figwheel REPL running in cursive.
Downgrade to cljs 1.9.946 fixes it
Using lein figwheel
instead of cursive and figwheel-sidecar 0.5.18 also fixes it.
:aot-cache false and :validate-config false do not help
Changing to a simlar project with similar project.clj fixes it.
Do let me know if you have hit something similar - I’m struggling to localise the issue.