Fork me on GitHub
#figwheel
<
2019-06-25
>
grumplet10:06:20

I’m cahsing a nasty problem that is preventing me upgrading to clojurescript 1.10. In the figwheel REPL I see:

grumplet10:06:44

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.```

grumplet10:06:26

So compilation works and the program runs

grumplet10:06:28

But later, if I try to load any namespace rooted at ‘predict3’ it fails but only under cljs 1.10

grumplet10:06:00

(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)

grumplet11:06:50

Error occurs in figwheel REPL running in cursive.

grumplet11:06:36

Downgrade to cljs 1.9.946 fixes it

grumplet11:06:33

Using lein figwheel instead of cursive and figwheel-sidecar 0.5.18 also fixes it.

grumplet11:06:18

:aot-cache false and :validate-config false do not help

grumplet11:06:12

Changing to a simlar project with similar project.clj fixes it.

grumplet11:06:49

Do let me know if you have hit something similar - I’m struggling to localise the issue.