UE5.1 Expecting to find a type to be declared in a module rules named '......'

That’s not only a solution for 3rd party plugins, but good practise as well. Plugins after build should be commited to repo with rest of the files. It’s more stable like that.