Next.js Text content does not match server-rendered HTML.

オープン
#178 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
next.js, react, typescript
領域
frontend

調査の方向性

Reproduce the hydration warning with npx create-next-app@latest --ts using Next.js 12.3.1, React 18.2.0, and React DOM 18.2.0, then compare it with React 17. Done means identifying whether the mismatch is in this project or the Next.js/React combination and documenting a verified compatible resolution.

索引モデルが issue の本文から書いたものです。

説明

Overview

The problem occurs in the versions below.

"next": "^12.3.1"
"react": "18.2.0"
"react-dom": "18.2.0"

An easy setup for that test is to run the command below.

npx create-next-app@latest --ts

error symptom

image

Resolution

I downgraded the react version to 17 and the problem did not occur.
Something seems to be a problem between react@18 and next.js.

"react": "^17.0.2",
"react-dom": "^17.0.2",
主要言語
TypeScript
スター
670
フォーク
55
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react-hook-form/devtools のほかの issue

react-hook-form/devtools の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。