Hm, i found the problem. The 'u' which I was getting the error was in the full name of formatter and the formatter name wasn't enclosed in apostrophes.
I created branches from commits before and found one working version. I have run it and it was okay. After that I deployed code from some commits later and it stopped working, but I was still in the app and somehow it showed different
error description! voila..
I would found the error in the view sooner or later, but what I find frustrating is, that now I don't know how I was able to get this better error message.
I was thinking that when I put the whole link to the application with request to specific item and # with application name, I would get the message but this is not the case. Next time with the deployed code from the last commit and with specific link to app and item number it again showed the message from the question.
So solution to add '' into formatter
title="{parts:
[{path: 'WorkitemText'}, {path: 'ScNumber'}, {path: 'CreatedByID'}, {path: 'OnBehalfOfID'} ],
formatter: 'ui.s2p.srm.sc.approve.SRM_SC_APVExtension.util.Formatter.taskTitle'
}"
The error was on missing '
...
formatter: u...
...