Skip to content

Events not triggered with next.js 14.1.0 ? #47

@twinkle-nl

Description

@twinkle-nl

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions