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
maybe
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
Oh
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!
dpsutton with the clutch fix =]
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
i know you're here in spirit 😄