Skip to content

Commit 39a4695

Browse files
authored
Log error to console
1 parent 14efbea commit 39a4695

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cra-template-typescript/template/src/reportWebVitals.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ const reportWebVitals = (onPerfEntry?: ReportHandler) => {
1010
getLCP(onPerfEntry);
1111
getTTFB(onPerfEntry);
1212
})
13-
.catch(() => {});
13+
.catch((err) => {
14+
console.error(err);
15+
});
1416
}
1517
};
1618

0 commit comments

Comments
 (0)