Fork me on GitHub
#cljsrn
<
2024-08-07
hadils23:08:23

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.

hadils23:08:27

It seems that es5 transpilation is broken in this case.