When I upgrade my Clojurescript dependency (using Krell) I get the following errors:
ERROR Could not evaluate [SyntaxError: 22:1:invalid statement encountered.]
ERROR Could not evaluate [TypeError: Cannot read property 'HighEntropyValue' of null]
ERROR Could not evaluate [SyntaxError: 604:1:invalid statement encountered.]
ERROR Could not evaluate [SyntaxError: 224:1:invalid statement encountered.]
ERROR Could not evaluate [TypeError: Cannot read property 'isOpera' of undefined]
ERROR Could not evaluate [ReferenceError: Property '$jscomp' doesn't exist]
ERROR Could not evaluate [ReferenceError: Property '$jscomp' doesn't exist]
Here’s my build.edn:
{:main app.core
:output-to "target/main.js"
:output-dir "target"
:optimizations :none
:source-map true
:npm-deps true
:closure-defines {"re_frame.trace.trace_enabled_QMARK_" true}
:language-in :es6
:language-out :es5
:verbose true}
Here’s my deps.edn:
{:paths ["src"]
:deps {io.vouch/krell {:mvn/version "0.5.4"}
org.clojure/clojurescript {:mvn/version "1.11.132"}
org.clojure/data.json {:mvn/version "2.5.0"}
com.taoensso/timbre {:mvn/version "6.2.2"}
metosin/malli {:mvn/version "0.13.0"}
camel-snake-kebab/camel-snake-kebab {:mvn/version "0.4.3"}
binaryage/oops {:mvn/version "0.7.2"}
applied-science/js-interop {:mvn/version "0.4.2"}
reagent/reagent {:mvn/version "1.2.0"
:exclusions [cljsjs/react cljsjs/react-dom]}
io.vouch/reagent-react-native {:git/url ""
:sha "dc4a6730e0da3f8b99243b1fd0912a5c802b43bc"}
re-frame/re-frame {:mvn/version "1.4.3"}
superstructor/re-frame-fetch-fx {:mvn/version "0.4.0"}
cljs-bean/cljs-bean {:mvn/version "1.9.0"}
com.github.oliyh/martian {:mvn/version "0.1.27-SNAPSHOT"}
com.github.oliyh/martian-cljs-http {:mvn/version "0.1.27-SNAPSHOT"}
com.github.oliyh/martian-re-frame {:mvn/version "0.1.27-SNAPSHOT"}
com.github.oliyh/martian-test {:mvn/version "0.1.27-SNAPSHOT"}
re-frisk-remote/re-frisk-remote {:mvn/version "1.6.0"}
haslett/haslett {:mvn/version "0.2.0"
:exclusions [org.clojure/clojurescript]}}
:aliases {:dev {:extra-paths ["dev"]}}}
Thanks in advance.I ran into this while trying different versions of CLJS/Closure; for some reason it doesn’t seem like all closure-library code gets transpiled to es5, and I don’t know why.
Thanks @joshmiller I am trying jsc. I discovered why it wasn’t working.
I am going to stick with Hermes-current CLJS-find/replace script for the time being.
The way react moves I assume there will be a version that doesn’t work with JSC at all at some point in the future, so trying to make it work to get out in front of that.
Great.
It seems that es5 transpilation is broken in this case.