Cannot open include file: 'K2Node.generated.h'

I keep getting this error when trying to package a plugin with an editor module. I needed to have two modules because the plugin includes a custom animation node. It compiles fine but will not package.