This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-21
Channels
- # announcements (13)
- # babashka (29)
- # beginners (52)
- # calva (95)
- # cider (18)
- # clj-commons (7)
- # cljs-dev (42)
- # clojure (121)
- # clojure-australia (1)
- # clojure-dev (39)
- # clojure-europe (36)
- # clojure-france (4)
- # clojure-greece (1)
- # clojure-italy (20)
- # clojure-nl (3)
- # clojure-portugal (1)
- # clojure-uk (7)
- # clojurescript (47)
- # conjure (2)
- # cursive (9)
- # datalevin (5)
- # datascript (8)
- # datomic (68)
- # defnpodcast (2)
- # deps-new (5)
- # fulcro (18)
- # graalvm (21)
- # gratitude (9)
- # jobs (6)
- # jobs-discuss (17)
- # leiningen (3)
- # lsp (80)
- # lumo (1)
- # malli (9)
- # mount (2)
- # off-topic (16)
- # other-languages (8)
- # podcasts-discuss (19)
- # reitit (5)
- # remote-jobs (5)
- # shadow-cljs (29)
- # sql (5)
- # tools-deps (13)
- # vim (11)
- # xtdb (19)
The link to mkcert was a great help. I got it all to work. I wrote up a quick blog post that put it all together in one place https://dev.to/rberger/set-up-ssltls-for-shadow-cljs-https-server-2np7
Has anyone gone through the process of upgrading to the Firebase SDK v9? For a require like ["firebase/compat/auth"]
I’m getting the following error. According to https://firebase.google.com/docs/web/modular-upgrade#update_imports_to_v9_compat it should be a drop in replacement.
For Firebase v9 1. Update shadow-cljs to at least 2.15.8 in package.json “shadow-cljs”: “2.15.8" 2. Add :js-options in shadow-cljs.edn under :app (the same place where :target, :output-dir, :asset-path, :modules, and :devtools are)
{:source-paths ["src"]
:dependencies [[binaryage/devtools "0.9.10"]
[proto-repl "0.3.1"]
[reagent "0.8.0"]]
:nrepl {:port 3333}
:builds
{:app {:target :browser
:output-dir "public/js"
:asset-path "/js"
:modules
{:main
{:entries [giggin.core]}}
:js-options {:babel-preset-config {:targets {"chrome" "80"}}}
:devtools
{:after-load giggin.core/main
:http-root "public"
:http-port 3000}}}}
I had to figure this out as Firebase is part of the Learn Reagent courseThank you @U8A5NMMGD!
Is babel-preset-config
documented anywhere? I can’t find it in the Shadow CLJS Guide
there are a couple of these knobs that seem not to documented 😛
maybe would be wort to put this in @U05224H0W ?
this shouldn't be required or do anything anymore? I bumped the default to be chrome 90 so I doubt this does anything?
:babel-preset-config
is not documented since it is temporary and will be removed once I figure out how to remove babel completely
@martinklepsch that warning only tells you which files failed to load. the reason why is elsewhere. I can't diagnose anything based on that warning alone 😛
ls resources/public/js/cljs-runtime | grep core.specs
cljs.core.specs.alpha.js
cljs.core.specs.alpha.js.map
@raymcdermott all specs in that ns only exist on the macro side so you can only use them in macros
Oh ... do I have to use them on the CLJ side via macros and then access those functions from CLJS?
@raymcdermott as a workaround you could copy this file and rename the ns and then load it as .cljs. This works, I pasted it in the REPL ;)
cljs.core.specs.alpha=> (s/get-spec ::defn-args)
{:cljs.spec.alpha/op :cljs.spec.alpha/pcat,