In case anyone else comes across this issue.
You need to add the dependency plugin to the folder 'Engine\Plugins' then UE will find the dependency and compile.
For example, if MyPlugin depends on AnotherPlugin, add AnotherPlugin to the folder Engine/Plugins/AnotherPlugin
Hope this helps ![]()