This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-03
Channels
- # announcements (2)
- # babashka (15)
- # beginners (40)
- # calva (11)
- # cherry (2)
- # cider (3)
- # cljsrn (2)
- # clojure (37)
- # clojure-austin (4)
- # clojure-europe (2)
- # clojurescript (16)
- # core-async (1)
- # datomic (25)
- # hyperfiddle (18)
- # jobs-discuss (9)
- # nbb (7)
- # off-topic (19)
- # pathom (6)
- # podcasts-discuss (4)
- # portal (37)
- # practicalli (1)
- # re-frame (11)
- # releases (1)
- # scittle (13)
- # shadow-cljs (6)
Trying to make re-frame-10x
work with an existing app. I followed the guide and enabled code tracing in events, but for some reason whenever I use an fn-traced
anywhere the dashboard closes as soon as the page loads. Here is what the browser console gives me:
[Error] NotFoundError: The object can not be found here.
flushSyncCallbackQueueImpl (module$node_modules$react_dom$cjs$react_dom_development.js:163:210)
flushSyncCallbackQueue (module$node_modules$react_dom$cjs$react_dom_development.js:162:270)
scheduleUpdateOnFiber (module$node_modules$react_dom$cjs$react_dom_development.js:474:365)
enqueueForceUpdate (module$node_modules$react_dom$cjs$react_dom_development.js:722:280)
(anonymous function) (module$node_modules$react$cjs$react_development.js:48:84)
day8$re_frame_10x$inlined_deps$reagent$v1v0v0$reagent$impl$batching$run_queue (day8.re_frame_10x.inlined_deps.reagent.v1v0v0.reagent.impl.batching.js:48)
(anonymous function) (day8.re_frame_10x.inlined_deps.reagent.v1v0v0.reagent.impl.batching.js:207:86)
(anonymous function) (day8.re_frame_10x.inlined_deps.reagent.v1v0v0.reagent.impl.batching.js:162)
(anonymous function) (day8.re_frame_10x.inlined_deps.reagent.v1v0v0.reagent.impl.batching.js:172)
G__40617 (day8.re_frame_10x.inlined_deps.reagent.v1v0v0.reagent.impl.batching.js:135)
...
My shadow-cljs.edn
:
:builds {:demo { :target :browser
:output-dir "public/js"
:asset-path "/js"
:modules {:main {:entries [<hidden>]}}
:devtools {:http-root "public"
:http-port 3000
:preloads [day8.re-frame-10x.preload]}
:dev {:compiler-options
{:closure-defines
{re-frame.trace.trace-enabled? true
"re-frame.trace.trace-enabled_QMARK_" true
day8.re-frame.tracing.trace-enabled? true
"day8.re-frame.tracing.trace-enabled_QMARK_" true}}}
:release {:build-options
{:ns-aliases {day8.re-frame.tracing day8.re-frame.tracing-stubs}}}
:compiler-options {:infer-externs :auto
:externs ["datascript/externs.js"]}}}
By the way, the ‘QMARK’ closure defines I only added (as per the rebux readme) just in case, but removing them does not solve the problem.
The QMARK
stuff isn't necessary AFAIK because you have already added the same things as proper symbols.
No clue about the error though - I can't even find that error in the sources of the libraries that I use, which include re-frame-10x.
Huh, maybe it’s a version mismatch error. I’ll try permuting the libraries I’m using.
That would be stumbling in the dark. Instead, you can break on where that error is emitted and see what exactly is "the object" and how it could get to "here".
Sorry, I’m a bit of a novice still. What do you mean by ‘break’ here? Do I need to use something like Flowstorm?
You can tell them to break at a specific line at all times or upon a condition being met, or when an exception is thrown, or when a particular DOM node is modified, or when a particular request is made, maybe other things.
I…what…I had no idea 😭 Okay, I’ll try banging my head against this again later