Hydration failed because the initial UI does not match what was rendered on the server.
There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering. 这个从站点建立就存在的,造成样式闪烁、控制台错误的问题终于解决了。
原因很没有技术含量,只是我在 layout.js 里错误地编写了 html 层级结构。
这个文件是在站点创建之初编写好的。之前理所当然地没有怀疑过这个文件,理所当然地认为刚刚接触 html 的我写出来的代码是正确的。
嗯,站点目前最大的bug就这样解决了。
已经不想说话了,我需要恢复一下。