I was facing error in next js site so i need to hide it
i've added this in "app.js" file and its working so it may also help you if you face this kind of issue
const noOverlayWorkaroundScript = `
window.addEventListener('error', event => {
event.stopImmediatePropagation()
})
window.addEventListener('unhandledrejection', event => {
event.stopImmediatePropagation()
})
`
<script dangerouslySetInnerHTML={{ __html: noOverlayWorkaroundScript }} />