Hot compile error after changing project name

After trying changing the name of a Cpp project and trying to compile it using hot reload, I get this error:

CompilerResultsLog: ERROR: One or more
of the modules specified using the
‘-module’ argument could not be found.

The actual solution seems to compile just fine. Anyone know what this error could be? Thank you in advance!

Have you regenerated the project files?

Edit the uproject file with a text editor of your choice. Change “OldProjectName” under modules to “NewProjectName”