I am trying to package my project for windows desktop. It worked fine before and I haven’t added any new plugins afaik, but now after working on it for awhile I am getting this error:
Missing precompiled manifest for ‘Zen’, ‘C:\Program Files\Epic Games\UE_5.1\Engine\Intermediate\Build\Win64\UnrealGame\Shipping\Zen\Zen.precompiled’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in Zen.build.cs to override. If part of a plugin, also check if its ‘Type’ is correct.
Apparently Zen module is referenced by DerivedDataCache module, which somehow got added to my .Build.cs file. However this module is developer-only and does not get packaged into shipping build.
Removing DerivedDataCache from Build.cs fixed it for me:
// remove this
//PrivateDependencyModuleNames.AddRange(new string[] {
// "DerivedDataCache"
//});