Fork me on GitHub
#fulcro
<
2021-05-05
>
thosmos00:05:14

I’m getting the following error on my fulcro forms diff saving fn. I’m wondering how to do this without adding a data_readers.cljc file to the souce root? RAD forms are working on this app, and it doesn’t need the data readers, but I haven’t figured out why yet.

{riverdb.api.mutations/save-entity
 {:com.wsscode.pathom.core/reader-error
  "class java.lang.Exception: Unknown Type: 'class com.fulcrologic.fulcro.algorithms.tempid.TempId' for value: #fulcro/tempid[\"0b788809-862b-4a03-95ef-99b93ca9e1b2\"]"}}

thosmos03:05:04

I worked around it by first testing for (com.fulcrologic.fulcro.algorithms.tempid/tempid? val) before (type val)

peterdee20:05:37

My application stopped working upgrading from fulcro 3.4.18 to 3.4.19. It appears that the call to (app/mount! APP Root “app”) in the client init function is where the error is generated. That call produces #object[TypeError TypeError: me.cljs$core$IMapEntry$_key$arity$1 is not a function]

peterdee20:05:42

Any thoughts on where to look?

peterdee02:05:01

I really, really need to remember to clean the build directory before writing questions to slack. Sorry about that!