This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-19
Channels
- # announcements (2)
- # beginners (448)
- # calva (10)
- # cider (27)
- # clojure (121)
- # clojure-argentina (2)
- # clojure-brasil (6)
- # clojure-chicago (1)
- # clojure-colombia (9)
- # clojure-ecuador (1)
- # clojure-europe (1)
- # clojure-italy (14)
- # clojure-mexico (1)
- # clojure-nl (19)
- # clojure-spec (11)
- # clojure-uk (160)
- # clojurescript (25)
- # core-async (7)
- # cursive (8)
- # data-science (1)
- # datascript (1)
- # datomic (4)
- # devops (2)
- # graalvm (3)
- # hoplon (1)
- # immutant (1)
- # jackdaw (32)
- # jobs (2)
- # joker (2)
- # keechma (9)
- # leiningen (26)
- # luminus (13)
- # off-topic (2)
- # overtone (2)
- # quil (5)
- # reagent (38)
- # reitit (13)
- # shadow-cljs (16)
- # spacemacs (2)
- # tools-deps (4)
- # xtdb (12)
Uncaught Error: no conversion to symbol
at Function.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$ (core.cljs:1111)
at $schema$core$pred$cljs$0core$0IFn$0_invoke$0arity$01$$ (core.cljs:312)
at core.cljs:371
at init.cljs:6
I turned on :pseudo-names true
to compilation and got this error.
It seems to be coming from schema.core
s definition of (def Str (pred string?))
. And schema.core/pred
one arity version seems to be
([p?] (pred p? (symbol (utils/fn-name p?))))
So looking at the code of cljs.core/symbol
it seems parameter is not symbol,string,var nor keyword. Anyone can explain why turning :pseudo-names
on causes this behaviour? :thinking_face: Has something happened to cljs.core/string?
when “pseudo-naming”?Or maybe it’s about schema.utils/fn-name
? https://github.com/plumatic/schema/blob/master/src/cljx/schema/utils.cljx#L62-L66 Any hints where I should be looking more to educate myself more on this? 😄 Thanks.
Here's the link https://medium.com/tkssharma/objects-in-javascript-object-assign-deep-copy-64106c9aefab
hrm, yeah I should have specified the ref statement was meant to imply I'm using a live object --- a NamedNodeMap in particular. https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap
stringifying it does no good. just returns "{}"
> via a macro in compiletime It should be available for clj files and the clj part of cljc files!
Hey guys, I've got a problem and I can't deploy my application. lein ubjerjar
works for me locally when i build my clojure/clojurescript app, but when I deploy to Heroku, my javascript dependencies declared in :npm-deps
are installed without their dependencies
Interesting are you also tracking your package.json in your repo ?
No. It is in my .gitignore
@U0791FRBN any idea what this could be?
i think you need to track package.json
for npm to download dependencies, what you want to gitignore is the actual directory node_modules
im not too familiar on how shadow.cljs uses npm deps
I would start there
ok i'll investigate further. thanks
any help would be greatly appreciated 🙏