# Error "No such file or directory on package" when assembling

**URL:** <https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116>\
**Category:** Platform & Builds\
**Tags:** error, header, unreal-engine, packaging-projects, Visual-Studio, question, CPP\
**Created:** [August 3, 2020, 1:54pm UTC](https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116 "2020-08-03T13:54:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shark\_vil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shark\_vil](https://forums.unrealengine.com/u/Shark_vil)\
**Post date:** [August 3, 2020, 1:54pm UTC](https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116/1 "2020-08-03T13:54:57Z")

</div>

Error “No such file or directory on package” when assembling

During assembly, it gives an error “No such file or directory on package”. At the same time, everything works in the editor, or if I specify the full path to the header file. How to fix it?

 ![309007-devenv-lmtlfedbtn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/0/c0064cc041a746a5c678c843809d6e95b2ad72e1.png)

Visual Studio project config

 ![309008-devenv-ujibr4f1nb.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/5/7/c5752670ed24b6bb93e78b8613c876c685e253ad.png)

---

<div class="post-metadata">

**Author:** ![Shark\_vil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shark\_vil](https://forums.unrealengine.com/u/Shark_vil)\
**Post date:** [August 8, 2020, 10:24pm UTC](https://forums.unrealengine.com/t/error-no-such-file-or-directory-on-package-when-assembling/469116/2 "2020-08-08T22:24:39Z")

</div>

I seem to have fixed this by adding the line “DirectoryWatcher” to the file **PROJECT\_NAME**.Build.cs

 ![309168-code-x7fz2je0dp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/8/b583101a5961fd5d2b69b737cc2e503eb1e4fe70.png)

But I got a new problem …

UATHelper: Packaging (Windows (64-bit)): ERROR: Missing precompiled manifest for ‘DirectoryWatcher’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in DirectoryWatcher.build.cs to override.

PackagingResults: Error: Missing precompiled manifest for ‘DirectoryWatcher’. This module was most likely not flagged for being included in a precompiled build - set ‘PrecompileForTargets = PrecompileTargetsType.Any;’ in DirectoryWatcher.build.cs to override.
