BuilderIO / hydration-overlay

Overlay for hydration errors with explicit diff between renders.

Home Page:https://www.builder.io/blog/announcing-react-hydration-overlay

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work in next.js 14.1.0 application

dogfrogfog opened this issue · comments

I followed the guide step by step, but the overlay doesn't work.

Am i missing something?

setup
Screenshot 2024-01-31 at 07 44 48

result
Screenshot 2024-01-31 at 07 46 04

You might need to update the appRootSelector to body or something else. Nextjs applications are initialized with a <main> element, which is why we use that as a default, but it looks like you removed yours from your app.

yeah you are right, thanks! figured this out 🫂