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 "<https://github.com/vouch-opensource/krell>"
:sha "d0e115309580ca0bdc782e4ca396df66a357d212"}
io.vouch/reagent-react-native {:git/url "<https://github.com/vouch-opensource/reagent-react-native.git>"
:sha "0fe1c600c9b81180f76b94ef6004c2f85e7d4aa0"}
reagent/reagent {:mvn/version "0.10.0"
:exclusions [cljsjs/react cljsjs/react-dom]}
com.cognitect/transit-cljs {:mvn/version "0.8.264"}}}
@michel_apostolou Maybe try specifying latest CLJS in your deps?
hi @joshmiller,
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)
I’m saying “other” because, from my understanding my original error comes from https://github.com/google/closure-library/blob/7d07947d3f1e8a9a10626d9b57a10f793c2f96a7/closure/goog/math/long.js#L550 that returns null
due to https://github.com/google/closure-library/blob/7d07947d3f1e8a9a10626d9b57a10f793c2f96a7/closure/goog/math/long.js#L16 failing