See: Unsupported Operand for FunctionSpace Type To create the vector element, use VectorElement
VectorElement