[From string (line 8) ] @startuml !preprocessorV2 left to right direction !function f($name) component "$name" !endfunction ^^^^^ This function does not have any !return directive. Declare it as a procedure instead ?