Can't package a project that uses templates or I get a lot of errors

I suspect this is a bug more than anything, but if I try to package a project that uses the templates, I get these:
LogWindows: Failed to load ‘WinPixGpuCapturer.dll’ (GetLastError=126)
LogStreaming: Warning: Failed to read file ‘../../../Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_24x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_128x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Content/Slate/Icons/doc_16x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Content/Slate/Common/ButtonHoverHint.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_24x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Platforms/VisionOS/Content/Editor/Slate/Launcher/Platform_VisionOS_128x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Content/Slate/Icons/doc_16x.png’ error.
LogStreaming: Warning: Failed to read file ‘../../../Engine/Content/Slate/Common/ButtonHoverHint.png’ error.
MapCheck: Map check complete: 0 Error(s), 0 Warning(s), took 7.939ms to complete.
UATHelper: Packaging (Windows): Result: Failed (OtherCompilationError)
PackagingResults: Error: Unknown Error

If I package a project made from scratch, it works perfectly fine. So I think this might be worth looking into.

Hello there @Graystripe2000!

Since packaging from scratch seems to be working with no conflicts, and considering your log, the issue seems to be tied to plugin conflicts, or missing template assets.

Most of your warnings are tied to VisionOS, if your project is not dependent on it, I would suggest disabling the plugin, via Edit > Plugins, then searching for “VisionOS”, and un-checking it (I would also do the same for any other platforms that are not needed, like Android or Linux).

As for missing content in the templates, they can be restored via repairing your UE install from the Epic Launcher. Simply right-click on your version, and select “Verify”.

Finally, one more thing to test, would be to clear your project’s cache, via deleting Binaries, Intermediate, and Saved folders from your project directory. After that, regenerate your project files from VS, and try packaging again.