This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-25
Channels
- # announcements (1)
- # babashka (3)
- # beginners (48)
- # calva (1)
- # clj-kondo (1)
- # cljs-dev (6)
- # clojure (29)
- # clojure-europe (15)
- # clojure-spec (1)
- # clojure-uk (8)
- # clojurescript (17)
- # conjure (23)
- # css (7)
- # cursive (16)
- # datascript (1)
- # emacs (4)
- # fulcro (32)
- # hoplon (3)
- # keechma (16)
- # leiningen (1)
- # luminus (1)
- # meander (11)
- # off-topic (18)
- # pathom (15)
- # re-frame (12)
- # reagent (12)
- # reitit (5)
- # reveal (5)
- # spacemacs (5)
- # xtdb (18)
Anyone have any ideas why this would happen?
clj -Sdeps '{:deps {com.cognitect/transit-cljs {:mvn/version "0.8.264"}
org.clojure/clojurescript {:mvn/version "1.10.764"}}}' \
-m cljs.main -re node
ClojureScript 1.10.764
cljs.user=> (require 'cognitect.transit)
Execution error (TypeError) at (<cljs repl>:1).
util.randomUUID is not a function
That doesn't happen to me.
When it happens, can you try running (println (.-stack *e))
?
(try (require 'cognitect.transit) (catch :default e (js/console.log e)))
returned
goog.require could not find: cognitect.transit
Error: goog.require could not find: cognitect.transit
at .load_ (/private/var/folders/3y/kns62z4s04g2yxsd6wdnzc1rgt_q4r/T/out22164861411613001621124901943731467/goog/base.js:2906:13)
at Object.require (/private/var/folders/3y/kns62z4s04g2yxsd6wdnzc1rgt_q4r/T/out22164861411613001621124901943731467/goog/base.js:905:27)
at Object.require (repl:31:16)
at ret__6698__auto__ (repl:1:111)
at repl:1:89
at repl:1:52
at repl:1:1
at ContextifyScript.runInThisContext (vm.js:116:20)
at Object.runInThisContext (vm.js:306:38)
at Domain.<anonymous> ([stdin]:76:38)
add :reload-all
to the require to see the original error - this error is secondary from the first
Looks like I get the same error. I think it's specifically related to node on my system as it works just fine in the browser repl.
Not sure why, but switching to an older version of cljs (1.10.738) and then back to 1.10.764 seems to have fixed it 馃し
Is it possible to know from the code which compilation level is set?
@karol.wojcik yes, its pretty obvious when you look at the file size and structure of the code
Ah sory I was not precise enough. I meant that I would like to know which compiler level is set from the source code. Like: cljs.core/some-magic-constant 馃槃 which would indicate one of :none, :whitespace, :simple, :advanced