This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-01
Channels
- # adventofcode (77)
- # announcements (1)
- # architecture (6)
- # babashka (16)
- # beginners (28)
- # calva (2)
- # cider (5)
- # clj-kondo (28)
- # clojure (63)
- # clojure-europe (39)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-uk (3)
- # clojurebridge (2)
- # clojurescript (23)
- # cursive (1)
- # datalevin (1)
- # dev-tooling (2)
- # emacs (16)
- # events (3)
- # fulcro (8)
- # guix (3)
- # honeysql (16)
- # introduce-yourself (1)
- # jobs (1)
- # joyride (91)
- # lambdaisland (1)
- # lsp (18)
- # membrane (1)
- # nbb (1)
- # off-topic (62)
- # pathom (4)
- # portal (11)
- # rdf (4)
- # re-frame (4)
- # releases (3)
- # shadow-cljs (55)
- # tools-deps (10)
- # xtdb (3)
- # yada (5)
Hey all! For the https://github.com/lambdaisland/glogi library, does anyone know if you can https://developer.mozilla.org/en-US/docs/Web/API/console/group together?
Hi! I’m trying to convert javascript-objects to cljs objects with js->clj but it does not seem to work. In my ns-declaration i have the following
(:require ["@smooth-ui/core-sc" :refer [theme]])
Then i’m trying to convert it to clj with
(js->clj theme)
but all i get back is #object[Object] and i cannot use it as a clojure map.
I also tried adding :keywordize-keys true to js->clj.
What am i doing wrong? 🙂The theme
object is probably not just a plain JS object but rather of some custom type. By default, custom types are ignored by js->clj
.
If you need to simply get a few fields from that object, you should use JS interop. If you really need to convert the whole object into a map, you can always iterate over its keys and do it manually.
Did you notice this? > Warning This project is deprecated and no longer maintained. > -- https://github.com/smooth-code/smooth-ui I was going to compare what you are doing to how it is intended to be used in JS. But the readme offers no hints, and the documentation (https://smooth-ui.smooth-code.com/open-source/smooth-ui/docs/) is a 404.
I have a phoenix-cljs project. I get this error from app_name\assets\node_modules\.bin\shadow-cljs:2
each time I start my phoenix server:
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
I'm on windows 10Yea. Do you know how I can fix it?
No, I installed the packages on windows and ran via windows
This is my folder structure.
shadow-cljs.edn
file
{:source-paths
["src"]
:dependencies
[]
:builds
{:app {:output-dir "../priv/static/js"
:asset-path "/js",
:target :browser
:modules {:app {:init-fn app.main/init!}}
:devtools {:before-load app.main/stop!
:after-load app.main/reload!}}
:test {:target :karma
:output-to "../priv/static/test.js"
:ns-regexp "-test$"
:autorun true}}}
config/dev.exs
node: [
"node_modules/.bin/shadow-cljs",
"watch",
"app",
cd: Path.expand("../assets", __DIR__)
],
if you must call node directly you can also just use node_modules/shadow-cljs/cli/runner.js
since that is the main script
node: [
"node_modules/shadow-cljs/cli/runner.js",
"watch",
"app",
cd: Path.expand("../assets", __DIR__)
],
I guessThanks very much, I'll try out your advice when I'm with my PC. Thanks
node_modules/shadow-cljs/cli/runner.js
solves my issue, thank you.