It seems this is due to the API changes in version 2.0. After my simple testing, the slot issue can be fixed by making the following modification:
Change module_specification = {module_slots = tier.module_slots, module_info_icon_shift = {0, 0.8}} to module_slots = tier.module_slots in lib\entities.lua