day8 / re-frame-10x

A debugging dashboard for re-frame. X-ray vision as tooling.
MIT License
631 stars 68 forks source link

[Bug]: Unable to load in combination with shadow-cljs #404

Closed Wegi closed 11 months ago

Wegi commented 11 months ago

What happened?

When using shadow-cljs and 10x the preload throws an error:

The map literal starting with :diff? contains 9 form(s). Map literals must contain an even number of forms.

in combination with

The above error occurred when loading "day8.re_frame_10x.preload.js". Any additional errors after that one may be the result of that failure. In general your code cannot be trusted to execute properly after such a failure. Make sure to fix the first one before looking at others.

10x Version

0.8.1

Reagent Version

1.2.0

React Version

17.0.2

re-frame Version

1.3.0

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant console output

Error: The map literal starting with :diff? contains 9 form(s). Map literals must contain an even number of forms.
    at new cljs$core$ExceptionInfo (core.cljs:11623:11)
    at Function.eval [as cljs$core$IFn$_invoke$arity$3] (core.cljs:11655:5)
    at Function.eval [as cljs$core$IFn$_invoke$arity$2] (core.cljs:11653:16)
    at Function.eval [as cljs$core$IFn$_invoke$arity$variadic] (errors.cljs:37:13)
    at Function.eval [as cljs$core$IFn$_invoke$arity$variadic] (errors.cljs:43:4)
    at Object.cljs$tools$reader$impl$errors$throw_odd_map [as throw_odd_map] (errors.cljs:71:4)
    at cljs$tools$reader$edn$read_map (edn.cljs:199:8)
    at Object.cljs$tools$reader$edn$read_delimited [as read_delimited] (edn.cljs:174:25)
    at cljs$tools$reader$edn$read_map (edn.cljs:194:18)
    at Function.eval [as cljs$core$IFn$_invoke$arity$4] (edn.cljs:409:34)
reportError @ base.js:1287

The above error occurred when loading "day8.re_frame_10x.preload.js". Any additional errors after that one may be the result of that failure. In general your code cannot be trusted to execute properly after such a failure. Make sure to fix the first one before looking at others.
reportError @ base.js:1291
kimo-k commented 11 months ago

Hey there, sorry for the issue. I've seen this a few times. Please try a factory reset and let me know if it still happens.

Wegi commented 11 months ago

That seemed to fix it, thank you!