I made sure the next.config.js did indeed load the library.
With console.logs in the hydration-overlay-initializer.js I do see the script actually gets loaded, and also got assured Server-Side Html is captured.
I created a ForcedMismatch component, but the overlay didn't appear.
When I add (or change)
window.addEventListener('error', (event) => { console.log('Error event detected:', event.message); });
in de initializer, do not see any event getting triggered.
Is next-js intercepting those events (maybe the newer versions?) before it reaches the hydration overlay script?
Or did I configure something wrong?
I made sure the next.config.js did indeed load the library.
With console.logs in the hydration-overlay-initializer.js I do see the script actually gets loaded, and also got assured Server-Side Html is captured.
I created a ForcedMismatch component, but the overlay didn't appear.
When I add (or change)
window.addEventListener('error', (event) => { console.log('Error event detected:', event.message); });in de initializer, do not see any event getting triggered.
Is next-js intercepting those events (maybe the newer versions?) before it reaches the hydration overlay script?
Or did I configure something wrong?