Unhandled promise rejections 트래킹

HYUNGU, KANG·2021년 10월 12일
0
process.on("unhandledRejection", (reason, p) => {
    console.log("Unhandled Rejection at: Promise", p, "reason:", reason);
});

혹은

node script.js --trace-warnings
profile
JavaScript, TypeScript and React-Native

0개의 댓글