Thanks David, I did replace the packages from app store but did not cleanup userlib... after doing that its compiles and runs local. Just have to check node deplyment...
I've fixed this issue by adding
* @throws COSVisitorException
to the comments of this function.