I'm using try{} catch(e){}
in NodeJs and found that simply adding Error()
to the end of the function fixed the warning.
Full code:-
someArray.forEach(async (arrayValue) => {
try {
const prodData = await myAsyncFunc(arrayValue);
} catch(e) {
console.error(`Error: ${e}`);
}
}, Error());