Removing Module From Project Caused Build Errors

I’ve been trying to solve a packaging issue for a while now, and part of my effort was to make a new editor-only module called Editor, following some instructions given for adding a module to a project. It worked correctly, however the module was ultimately unnecessary and so I attempt to undo my modifications. My project builds correctly in Visual Studio, however attempting to open it notifies me:

The following modules are missing or built with a different engine version:

UE4Editor-<GameName>.dll

Would you like to rebuild them now?

Selecting yes attempts to rebuild my project but fails, saying:

<GameName> could not be compiled. Try rebuilding from source manually.

Of course I’ve done this many times and have even deleted my project’s binary, intermediate, and .vs folders then recreated the solution files. Nothing works. I know there are no references to the deleted module as I’ve searched the entire solution with VS and even searched for the phrase inside any file in the Windows directory. As of now I can’t even open the project in the editor. At this point I’m not even sure if the module is causing the issue, so are there any recommendations as to where I can go from here?

I’ve got an update. I attempted to re-add the removed module and now UE4 reports that it’s missing two modules:

UE4Editor-[GameName].dll and
UE4Editor-[GameName]Editor.dll

I guess I was mistaken in assuming that the missing .dll was the removed module, it appears to have been the actual game’s .dll. How can I go about recompiling it seeing as UE4 can’t do so automatically?

Okay I solved this particular issue by restoring my old binary folder to the project. Not really sure why it couldn’t be rebuilt, but I’m still getting another issue here: Editor Target not Found! - Platform & Builds - Unreal Engine Forums

This is an old post but I have been wanting to remove modules (Unreal Engine API Reference | Unreal Engine Documentation) and add them back in as desired and looking around for how to do it. Perhaps you know?

1 Like