Unable to package my project because of UnrealEd

Hello! I have run into a weird bug where I cannot package my project due to this error: Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets. I have never encountered this before and am at a complete loss as to how to fix it.

I am getting the same error… Did you find a solution?

Its not really a solution… I ended up rebuilding my project from scratch and then it would build without the error. I’m sorry I can’t to better.