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

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?

Visual Studio project config

I seem to have fixed this by adding the line “DirectoryWatcher” to the file PROJECT_NAME.Build.cs

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.