This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-03
Channels
- # announcements (17)
- # asami (17)
- # babashka (20)
- # beginners (110)
- # calva (1)
- # cherry (3)
- # cider (1)
- # clj-kondo (21)
- # clj-on-windows (1)
- # cljsrn (5)
- # clojure (142)
- # clojure-austin (1)
- # clojure-europe (72)
- # clojure-france (28)
- # clojure-hungary (2)
- # clojure-nl (2)
- # clojure-norway (38)
- # clojure-poland (2)
- # clojure-uk (3)
- # clojurescript (4)
- # cursive (33)
- # data-science (3)
- # datahike (5)
- # datomic (1)
- # emacs (27)
- # events (3)
- # fulcro (15)
- # graalvm (4)
- # gratitude (2)
- # honeysql (7)
- # humbleui (8)
- # introduce-yourself (11)
- # jobs-discuss (9)
- # lambdaisland (3)
- # lsp (18)
- # malli (62)
- # music (1)
- # nbb (3)
- # off-topic (10)
- # pathom (3)
- # pedestal (6)
- # polylith (5)
- # re-frame (7)
- # releases (2)
- # shadow-cljs (33)
- # sql (1)
- # test-check (23)
- # vim (20)
- # xtdb (9)
Does anybody know if there is a way to get Vim + Fireplace to default to a particular build instead of typing :CljEval (shadow/repl :app)
? Would be cool if I could specify this in shadow-cljs.edn
or similar.
your client has to initiate the switch to a specific build, so no there is no option for this in shadow-cljs
well I strongly recommend never using environment variables but people generally don't listen to me 😛
do you want to set an actual compile time constant? or is it actual runtime configuration, like actual env variables would be?
[:app] Build failure:
Closure compilation failed with 5 errors
--- node_modules/@chakra-ui/descendant/dist/index.cjs.js:69
Transpilation of 'Not a class declaration' is not yet implemented.
--- node_modules/@chakra-ui/modal/dist/index.cjs.js:85
Transpilation of 'Not a class declaration' is not yet implemented.
--- node_modules/@chakra-ui/react-use-pan-event/dist/index.cjs.js:39
Transpilation of 'Not a class declaration' is not yet implemented.
--- node_modules/@chakra-ui/react/node_modules/@chakra-ui/utils/dist/index.cjs.js:999
Transpilation of 'Not a class declaration' is not yet implemented.
--- node_modules/@chakra-ui/system/node_modules/@chakra-ui/utils/dist/index.cjs.js:999
Transpilation of 'Not a class declaration' is not yet implemented.
Hi guys, getting these errors with shadow-cljs latest versions, any help ^^By chance do you have the code anywhere? Or could you make a repo with the minimal reproduction case?
these are errors from the closure compiler. looks like the code is using features it doesn't support
only option is using a secondary bundler as described here https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html#option-2-js-provider-external
@U05224H0W when trying to use
:js-options
{:js-provider :external}
it throws a this error regarding react object?
but the object shadow.js.shim.module$react
is available … weird 😕uhm :js-provider :external
doesn't use this? did you maybe load the wrong code or some bad cache?
Is there some equivalent of :figwheel-always
for shadow-cljs?
Specifically in relation to reloading javascript changes for things that aren't directly in the path of the init-fn
? I'm trying to use some sidecar files to not clutter up the program while I'm experimenting
some scratch files
instead of an inline comment
block. Yeah exactly
I guess a second build would do the trick?
:thinking_face:
whoaaa, outstanding
yessss that was exactly it 👏 👏 👏