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

Requires explicit webpack dependency to run

JohnRPB opened this issue · comments

I'm using the code as provided in the "webpack helper" example from your Github, but every time I run the project it complains that it cannot find the "webpack" package.

I've found that adding webpack as an explicit dependency gives hairy errors in Next 14, so I rely on Next's own internal webpack dependency. Since we have access to the "webpack" instance inside our nextjs config, if we are able to optionally provide it to the hydration-overlay wrapper function, it would avoid react-hyrdation-overlay having to import it separately, and thus fix the issue.