Requires explicit webpack dependency to run
JohnRPB opened this issue · comments
Johann Baptista commented
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.