in some instances custom UI modules have a empty settings.json file. Since Mendix 10.4 this generates a NULL error and compiling is no longer working. The solution is to add some empty brackets in the settings.json, as it can't be empty:
{ }
Now their is an empty awnser instead of a NULL error and compiling is working again.