Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Events not triggered with next.js 14.1.0 ? #47

Open
twinkle-nl opened this issue Aug 1, 2024 · 1 comment
Open

Events not triggered with next.js 14.1.0 ? #47

twinkle-nl opened this issue Aug 1, 2024 · 1 comment

Comments

@twinkle-nl
Copy link

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?

@monolithed
Copy link

I upgraded from 14.1.4 to 14.2 and also encountered the hydration issue. I can confirm that the overlay is not showing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants