I have been trying to package my project and every time it throws this unknown error at me. I have looked for answers as to why but everything I have tried fails. If anyone can help I would greatly appreciate.
Checking through your logs, the error you are receiving as multiple possible causes. To reach a solution, the best approach would be to experiment with the possible fixes, that have yield results through the community.
Close visual studio and visual code in the background, while packing
Check for any duplicate files present in your project
Delete the Intermediate folder from the project, then repack
Review your installed plugins, for any duplicates enabled
Test building in Development mode
More available options can be found in the following threads:
If all methods fail, I would suggest a full uninstall/reinstall of all Epic software, along with a refresh for Visual Studio:
First, uninstall the engine, launcher, asset packs, etc
Next, open the registry directory HKEY_CURRENT_USER\Software\Epic Games\Unreal Engine\Builds, and delete any build entries
Finally, delete the folders %userprofile%\AppData\Local\UnrealEngine and %userprofile%\AppData\Local\UnrealHeaderTool
After that, no elements related to UE should be left in your system
Now, reinstall UE launcher from scratch, and add any version of the engine you need