This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-14
Channels
- # beginners (31)
- # boot (9)
- # cider (10)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (222)
- # clojure-austin (4)
- # clojure-france (13)
- # clojure-italy (21)
- # clojure-nl (2)
- # clojure-russia (71)
- # clojure-spec (9)
- # clojure-uk (39)
- # clojurescript (50)
- # cursive (16)
- # datomic (69)
- # dirac (2)
- # figwheel (1)
- # graphql (19)
- # hoplon (4)
- # jobs (1)
- # klipse (3)
- # leiningen (4)
- # liberator (3)
- # luminus (9)
- # lumo (9)
- # off-topic (3)
- # om (21)
- # onyx (11)
- # parinfer (2)
- # pedestal (8)
- # planck (19)
- # re-frame (17)
- # reagent (12)
- # remote-jobs (1)
- # ring-swagger (3)
- # spacemacs (17)
- # specter (23)
- # sql (1)
- # unrepl (64)
- # untangled (19)
- # yada (5)
@ssaul simply bump the version from 1.9.542 (as it is in the repo) to 1.9.562 the examples will compile - NB you must clear your caches in your browser
if someone here has commit rights they could bump this version and your pain would go away - can one of the committers do a fresh clone and run the hello example ??
That is why I wanted to know if anyone actually got the example (or any of the examples) to work.
Oh yeah, it compiled with warnings.
lein cljsbuild once hello
Compiling ClojureScript...
Compiling "examples/hello/main.js" from ["src" "examples/hello/src"]...
WARNING: Use of undeclared Var cljs.pprint/pprint at line 15 examples/hello/out/devcards/util/utils.cljs
WARNING: Use of undeclared Var cljs.pprint/with-pprint-dispatch at line 23 examples/hello/out/devcards/util/utils.cljs
WARNING: Use of undeclared Var cljs.pprint/code-dispatch at line 23 examples/hello/out/devcards/util/utils.cljs
WARNING: Wrong number of args (1) passed to UUID at line 564 examples/hello/out/cljs/reader.cljs
WARNING: Use of undeclared Var clojure.string/starts-with? at line 822 examples/hello/out/cljs/analyzer.cljc
WARNING: Use of undeclared Var clojure.string/ends-with? at line 972 examples/hello/out/cljs/analyzer.cljc
WARNING: Use of undeclared Var clojure.string/starts-with? at line 2643 examples/hello/out/cljs/analyzer.cljc
WARNING: Can't take value of macro cljs.core/require at line 15 examples/hello/out/cljs/nodejs.cljs
WARNING: require already refers to: cljs.core/require being replaced by: cljs.nodejs/require at line 15 examples/hello/out/cljs/nodejs.cljs
Successfully compiled "examples/hello/main.js" in 22.095 seconds.
Not sure if that matters to much but just putting it out there incase there is some solution issue tied to any of these warnings.@anmonteiro still have issues with the README? Thinking about merging this in
@dnolen I’ll look into it in 5
@dnolen looks good now
@ssaul I got the same error it ended up being a cached version of devtools, hence the note about clearing the cache - I tried in four other browsers (where I rarely use clojurescript) and they worked, went back to chrome with a hard reload and Bob's your uncle
oh ok. I cleared my cache (at least I thought I did). Will try it again. Thanks you so much.
or different browser? time to try Brave browser (debugging is less fun as the inspector is not dockable, yet)
i tried it in another browser, (safari) and got the same error. I think I will blow away my local om repo, clear my cache, and restart my computer. At this point, I am pretty sure it has to be something I am doing wrong or something with my environment.
can someone help me with the correct quoting I need to include mutation key in the query, something like this:
(defui Comp
static om/IQuery
(query [_] ['foo/create!]))
why? because when I use :remote true in mutate method, it sends it to the server, there result of operation comes back in {:value result}, as novelty it gets stored in the state under 'foo/create!
key. Now I need to read it. Can't figure out proper way to quote it