Cannot package if common ui plugin is enabled

Problem solved. After several days of struggling here is what finally solved my problem.

By wanting to generate the project file as Evil_Pee suggested to me, I realized that I did not have the generate visual studio project file option in the windows context menu by right-clicking on the game exe.

To fix this I followed this forum:

(Don’t forget to run the newly placed ‘UnrealVersionSelector’ once after I set the new association)

The option in the context menu finally appeared. I can again use the epic game launcher to launch my projects.

But the generate visual studio project file option was giving me an error. So I installed visual studio 2019 in addition to the 2022 that I already had.

Despite this I still could not generate the project file with visual studio. On the other hand, by launching the project from the epic launcher, the project opens. I relaunched a packaging with the plugins activated and finally it worked.

Hoping that can help. Thanks a lot for the help.