Open Viir opened 5 years ago
Further investigating the issue leading to the exception shown above:
The problem, in that case, was that the functions to init the state and process events used different state types.
The error was in the value for pathToInitialStateFunction
in this part of the configuration:
https://github.com/Viir/Kalmit/blob/640078f59bea3fa2ba1af43372933cff304b8c94/implement/PersistentProcess/PersistentProcess.Common/Process.cs#L104-L111
As I confused different init functions, the type of the actually configured one was wrong. Therefore the value produced there resulted in the crash when calling the event processing function.
To prevent such confusion, the framework should check that these types match and produce an error message if they don't.
The inspection part is now covered with https://github.com/Viir/Kalmit/commit/8a4f2a317cd21dfa857c6851eb10be623c1aaf59
I got following exception:
It would be helpful to inspect the javascript code to find out more about this problem. Probably both the
javascriptFromElmMake
and the final javscript should be available for inspection:https://github.com/Viir/Kalmit/blob/640078f59bea3fa2ba1af43372933cff304b8c94/implement/PersistentProcess/PersistentProcess.Common/Process.cs#L122-L130