Typescript error TS2345 Error: TS2345:Argument of type ‘Buffer’ is not assignable to parameter of type ‘string’

I think the error is thrown on the input parameter of JSON.parse. Try to first call toString on it then pass to the function.

let communicationInformation = JSON.parse(newCommunication.content.toString());

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)