Have you tried doing generate definitions as a separate step? Not as combined with build/reload ? I've run into occasions with new mods where I had to do it separately first.
If you want me to take a stab at fixing it I will. Upload your mod to a cloud storage and get me a link.
Make sure to send me a private message so I don't forget.
There are just too many errors to try doing this via forum.