Fork me on GitHub
#figwheel-main
<
2018-10-28
>
drcode15:10:42

@pesterhazy where you using node/clojurescript on the server? In that case there will be two "target" directories (one for client, one for server) and if one points the web server to the server version of the pulled libraries then base.js doesn't exist and this exact error appears, since that's a browser-only thing. (just documenting the cause of the problem for future people running into similar issue)

pesterhazy19:10:57

@drcode not using node, no

dazld19:10:52

maybe a silly question, but how do I turn off the jetty logs? it’s making the repl itself unusable 😞

dazld19:10:14

I’ve tried putting :log-level :error etc in figwheel-main.edn

dazld19:10:21

(didn’t work)

dazld19:10:36

also in my dev.cljs.edn file

dazld19:10:59

not doing anything edgy… just booting up a repl!

dazld19:10:03

{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
        org.clojure/clojurescript {:mvn/version "1.10.339"}
        com.bhauman/figwheel-main {:mvn/version "0.1.9"}
        com.bhauman/rebel-readline-cljs {:mvn/version "0.1.4"}
        org.immutant/web {:mvn/version "2.1.10"}
        ring {:mvn/version "1.7.0"}
        hiccup {:mvn/version "2.0.0-alpha1"}}
 :aliases {:dev {:main-opts ["-m" "protos.server"]}
           :fig {:main-opts ["-m" "figwheel.main"]}}
 :paths ["src" "resources" "target"]}

dazld19:10:37

I’m trying to server render hiccup and then have a client side app that takes over that markup

dazld20:10:55

nevermind - it stopped, have no idea why 😄