This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-16
Channels
- # announcements (5)
- # asami (4)
- # babashka (72)
- # beginners (241)
- # calva (15)
- # cider (2)
- # circleci (5)
- # clara (41)
- # clj-kondo (38)
- # cljsrn (4)
- # clojars (33)
- # clojure (283)
- # clojure-europe (41)
- # clojure-nl (9)
- # clojure-uk (11)
- # clojuredesign-podcast (14)
- # clojurescript (76)
- # conjure (12)
- # cryogen (42)
- # data-science (1)
- # datalog (6)
- # datomic (7)
- # depstar (10)
- # events (2)
- # figwheel-main (1)
- # fulcro (22)
- # funcool (1)
- # london-clojurians (1)
- # malli (8)
- # meander (11)
- # off-topic (12)
- # pathom (19)
- # re-frame (8)
- # reveal (34)
- # shadow-cljs (34)
- # sql (7)
- # vim (8)
- # xtdb (6)
Hey all, I keep getting this funky warning:
------ WARNING #1 - -----------------------------------------------------------
Resource: com/cognitect/transit.js:649:8
variable module is undeclared
And in the console, for the minified release version there is:
winjpc.js:145 TypeError: Cannot read property 'call' of undefined
at pa (winjpc.js:262)
I have ajax and rum as dependencies, the watch build works locally, but when I upload a release to my box it is no worky...
is it problematic that my namespace is a single word with no dots?
DOH renamed the build didn't change the console line to compile w/ new name xD
no dice ;/
so the non-minified code says "move data fetching to componentDidUpdate" ... it's a warning
and then when I make a release build... it just doesn't work
Yeah, not really sure... maybe you guys get these errrors sometimes?
That’s probably lack of externs
Thank you. Will look into it now.
I added :infer-externs :all to the shadowncljs edn ... no difference yet... hrm
oh it needs :compiler-options {:infer-externs :auto}
let's se if that does the trick...
can someone point me in the direction of a current tutorial on how to use npm react components in a shadow-cljs/reagent project?
I found a couple on the googles but I am worried they may not be current.
I want to use https://codesandbox.io/s/react-piano-basic-demo-forked-q5xyj in a lein new reagent myapp +shadow-cljs
generated project… I’m not sure I can do this in ClojureScript, actually.
i think rumnext can make rum components out of javascript, not 100% sure
I found this… https://code.thheller.com/blog/shadow-cljs/2017/11/10/js-dependencies-in-practice.html
but I’m truly floundering.
https://github.com/dpsutton/asg-ignite-presentation is a repo with links to a presentation, a demo app built and deployed onto netlify, and the repo of the app. it uses npm deps and shadow-cljs
sweet!
always.
when it doubt.. baby steps and comment out
When I add these lines, everything breaks
[:input.insit { :type "text"
:value rc
:auto-focus :true
:on-change (fn [e] (reset! email-input (.. e -target -value)))}]
sanity check
i think :value is not necessary... hrm
🎵 "minutes change like seasons, i'm just talking to myself.."
WOW. that was the offending line xD
thanks for stickin' it out with me boiz