Hi @RPA484,
Welcome to the Unreal Engine Community.
DesktopPlatform
module is not intended for non-editor builds.
Have a look inside your Project’s .Build.cs
file. Look for any references to the DesktopPlatform
module.
You may need to do the same for each of the plugins you are using as well. They will each have their own .Build.cs
file.
You can then Clean Solution
through your IDE and rebuild the Project.
Hope this help, let me know if you have any questions.