Packaging fails (cannot compile code)

When I package the game, the compiler cannot find these files:

MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: E:\Epic Games\4.9\Engine\Source\Editor\BlueprintGraph\Classes\EdGraphSchema_K2.h(5) : fatal error C1083: Cannot open include file: ‘EdGraphSchema_K2.generated.h’: No such file or directory
Games\4.9\Engine\Source\Editor\UnrealEdMessages\Classes\AssetEditorMessages.h(5) : fatal error C1083: Cannot open include file: ‘AssetEditorMessages.generated.h’: No such file or directory

These files are part of the modules UnrealEdMessages and BlueprintGraph. Both are Editor modules. Everything compiles and links perfectly when I build Editor.

Suggestions, please :slight_smile: