Thank you. The supplied project was exactly what I needed to identify the cause.
The problem is this declaration directly inside HourEntryContainer:
Var ThisWeek As DateTime = DateTime.Now
Class data in Objo must be declared using Property; Var is for local variables and module members. In this project, ThisWeek is already declared locally inside FakeOpening(), so the class-level declaration can simply be removed.
The compiler had a bug where it accepted this invalid class member and generated incorrect initialisation bytecode. That ultimately caused the application to exit with code 1. The earlier fixes exposed the underlying internal type mismatch, which made this much easier to diagnose.
This compiler bug is now fixed: https://feedback.objo.dev/bug/1196
In the next release, the same code will produce a clear compile-time error:
Class fields must use 'Property' instead of 'Var'.
If persistent class state was intended, the alternative is:
Private Property ThisWeek As DateTime
and then assign DateTime.Now inside a method such as FakeOpening(), since runtime expressions cannot be used as property defaults.
Thanks again for providing the complete project - it was extremely helpful.