"Unexpected error has occurred during the library compilation process: Value cannot be null. (Parameter 'type')" - error when trying to compile

update: issue can also be solved by packaging the coded workflow as a library and using the new activity in the workflow with entities