Fork me on GitHub
#cljsrn
<
2021-04-09
>
Michel A.10:04:30

Hello, when running the code below in krell repl in an “empty” project (only the react-native basic project installed) I run into an exception :

(require '[cognitect.transit :as transit])
(transit/uuid "b1a5b1c1-6319-4855-8b6a-99139f87ad20")
Exception :
TypeError: Cannot read property 'assert' of null
    at Function.Long.fromInt (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:291:11)
    at Object.types.hexFor (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:259:50)
    at Transit$UUID.types.UUID.toString (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:292:20)
    at Object.eval [as cljs$core$IEquiv$_equiv$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:16:34)
    at cljs$core$_equiv (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:2671:10)
    at Transit$UUID.eval [as cljs$core$IEquiv$_equiv$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:56:25)
    at Object.cljs$core$_equiv [as _equiv] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:2671:10)
    at Function.eval [as cljs$core$IFn$_invoke$arity$2] (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:4973:35)
    at cljs$core$_EQ_ (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:4940:23)
    at eval (eval at handleMessage (krell_repl.js:285), <anonymous>:20:16)
Any ideas ? thx My deps :
{:deps {io.vouch/krell {:git/url ""
                        :sha "d0e115309580ca0bdc782e4ca396df66a357d212"}
        io.vouch/reagent-react-native {:git/url ""
                                       :sha "0fe1c600c9b81180f76b94ef6004c2f85e7d4aa0"}
        reagent/reagent {:mvn/version "0.10.0"
                         :exclusions [cljsjs/react cljsjs/react-dom]}

        com.cognitect/transit-cljs {:mvn/version "0.8.264"}}}

joshmiller16:04:40

@michel_apostolou Maybe try specifying latest CLJS in your deps?

Michel A.17:04:29

hi @U0E1JV8GK, thanks for taking the time to reply. When adding org.clojure/clojurescript {:mvn/version "1.10.844"}, I have other dependency loading errors : Could not load target/goog/html/safescript.js from cache: TypeError: Cannot destructure property 'fail' of 'goog.require(...)' as it is null. at eval (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:12:8) at Object.goog.loadModule (eval at bootstrap (main.js:23), <anonymous>:1089:27) at eval (eval at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219), <anonymous>:1:20) at eval (<anonymous>) at global.CLOSURE_IMPORT_SCRIPT (krell_repl.js:219) at goog.Dependency.load (eval at bootstrap (main.js:23), <anonymous>:3021:23) at eval (eval at bootstrap (main.js:23), <anonymous>:2658:15) at goog.DebugLoader_.loadDeps_ (eval at bootstrap (main.js:23), <anonymous>:2662:9) at goog.DebugLoader_.load_ (eval at bootstrap (main.js:23), <anonymous>:2557:14) at Object.goog.require (eval at bootstrap (main.js:23), <anonymous>:846:27)