Hydration problem

Hi, I have installed Next 16.2.4 and React 19.2.5 and hydration stopped working. No JS gets executed at all. If I downgrade Next back to the version 16.1.7 and React to the version 16.2.0 everything works fine. I’ve found out that a similar bug has already been reported. Here’s the link Bug 93413. This occurs in the development. I don’t know if it occurs in the production envionment.

My issue is a bit different because in my case javascript doesn’t work at all but the problem may originate from the same place. It looks like some kind of incompatibility between Next and React.
My question is, is there a working fix for this problem or which versions of Next 16.2.* are compatible with which versions of React? Has anyone come across this problem yet?