Fatal error C1083: Cannot open include file: 'K2Node.generated.h'

If your plugin compiles for target DevelopmentEditor but not for Development may be creating an additional editor module helps:

  1. A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums
  2. A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums
  3. https://answers.unrealengine.com/questions/41509/extending-editor-engine.html

As a workaround you could also try guarding the editor specific code with the define WITH_EDITOR and UEBuildConfiguration.bBuildEditor in the build.cs like here:

  1. UnrealEd Dependency Causes Package Failure - C++ - Unreal Engine Forums