must ts-annotate try-catch err
(local var) err: unknown
Object is of type 'unknown'.ts(2571)
workaround: dev.to/jdbar/the problem with handling node js errors in typescript and the workaround m64 - annotate (err as NodeJS.ErrnoException )
fix by changing tsconfig.json "compilerOptions"
!deprecated TS 4.0 changed default catch clause type from any to unknown