UHT cant handle #if WITH_EDITOR

I’m using 4.16 and mentioned 4.17 because I saw kinda related issue fixed there, so im not sure in most recent version this exact issue is not fixed.