Open bra1nDump opened 5 years ago
I have this exact same problem. I have created a library, where I pull a backend for data. I use JsonProvider
to "parse" the data, and I try to put it in the model.
It works fine while building the app, but liveupdate throws same error as it does for you.
Did you come up with a solution? if so, would you mind sharing it?
Right now our team is placing most of the time into developing the UI for our Fabulous app, and the build/deploy time is around 2 minutes, so we are trying to use
LiveUpdate
. At the same time we are usingFSharp.Data JsonProvider
across the application, for instanceABCTypeProvider.Root
often times ends up in theModel
.The compilation on the build machine goes fine, but when porta code is run by the interpreter on the application host (android emulator) this is the error that happens
ERROR SENDING TO WEBHOOK: "System.Exception: error converting rhs of init System.InvalidOperationException: the type 'Root' does not have a qualified name
I assume the problem is that type gets erased and since it is referenced in the
Model
it does not work. But it really sucks and I am trying to get it to workTried:
Model
and the accessors are used within the update/view functions.Contemplating:
--livechecksonly
obj
and have helpers to access the fields of the type (all in the separate util project)New idea:
If the code is first compiled by
FSharp.Compiler.Service
maybe figure out why it does not erase the types (assumption) as well as regular VS build process doesI think I will do more research on number 1 and if I fail proceed with 3.
Any suggestions on a good way to troubleshoot this?