having an issue running an using re-state
Good day
I got the below error when trying to run my that uses re-state.
nexttick.js:195 An error occured while handling the re-frame event: [:maximgb.re-state.impl.interpreter/xs-transition-event #object[maximgb.re-state.impl.interpreter.t_maximgb$re_state$impl$interpreter58556] [:maximgb.re-state.impl.interpreter/xs-init]] Within the :maximgb.re-state.impl.interpreter/xs-transition-event event handler function. router.cljc:201 Uncaught TypeError: module$node_modules$xstate$dist$xstate_cjs.Machine is not a function at Object.maximgb$re_state$impl$machine$make_machine_xs_machine [as make_machine_xs_machine] (machine.cljs:27:4) at Object.eval [as maximgb$re_state$protocols$MachineProto$_machine__GT_xs_machine$arity$1] (machine.cljs:48:8) at Object.maximgb$re_state$protocols$_machine__GT_xs_machine [as _machine__GT_xs_machine] (protocols.cljs:13:26) at Object.eval [as maximgb$re_state$protocols$MachineProto$_machine__GT_xs_machine$arity$1] (machine.cljs:86:10) at Function.maximgb$re_state$protocols$_machine__GT_xs_machine (protocols.cljs:13:26) at Function.eval [as cljs$core$IFn$_invoke$arity$3] (core.cljs:3941:15) at Function.eval [as cljs$core$IFn$_invoke$arity$2] (core.cljs:3936:7) at Function.eval [as cljs$core$IFn$_invoke$arity$2] (core.cljs:3971:7) at Object.G__19578__delegate (core.cljs:11094:22) at Object.G__19578 [as machine__GT_xs_machine] (core.cljs:11091:12)
browser.cljs:20 shadow-cljs: #6 ready! batching.cljs:59 [Violation] 'requestAnimationFrame' handler took 102ms
I am trying to replicate this example using re-state/re-frame.
https://blog.logrocket.com/state-driven-interfaces-with-xstate/
Is the library still operational ?
What parameter is expected to be supplied at the machine definition below
(rs/def-machine imageFetcher basicmachine {})
What is basic machine ?