# Game compiles but can't find header when packaging

**URL:** <https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072>\
**Category:** Platform & Builds\
**Tags:** include, header, unreal-engine, question\
**Created:** [February 9, 2019, 11:17pm UTC](https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072 "2019-02-09T23:17:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [February 9, 2019, 11:17pm UTC](https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072/1 "2019-02-09T23:17:14Z")

</div>

Hello,

My games compiles fine but when i try to package it i get this error:

```
E:\unrealNewYag_421\yag\Source\yag/lua/YagLua.h(8): fatal error C1083: Cannot open include file: 'game/YagGameState.h': No such file or directory

```

This used to work well in 4.20 and doesn’t work in 4.21.

Thanks

Cedric

---

<div class="post-metadata">

**Author:** ![uced](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@uced](https://forums.unrealengine.com/u/uced)\
**Post date:** [February 10, 2019, 7:38am UTC](https://forums.unrealengine.com/t/game-compiles-but-cant-find-header-when-packaging/443072/2 "2019-02-10T07:38:37Z")

</div>

I just retried and it went OK.

As far as i know, i did nothing special beside sleeping a few hours, it’s just magic.

Cheers

Cedric
