Warning - Warning: Received `true` for a non-boolean attribute `s`.

オープン
#1,426 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

報告された SSR スタックトレースから始め、node_modules/flowbite-react/dist/esm/components/Navbar/NavbarLink.mjs を調査し、その後 src/components/Header.js に示されている使用方法を確認します。報告された Next.js セットアップで警告を再現し、boolean ではない属性に関する警告が出力されなくなれば完了です。

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

説明

  • I have searched the Issues to see if this bug has already been reported
  • I have tested the latest version
Warning: Received `true` for a non-boolean attribute `s`.

If you want to write it to the DOM, pass a string instead: s="true" or s={value.toString()}.
    at a
    at li
    at NavbarLink (webpack-internal:///(ssr)/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarLink.mjs:13:23)
    at ul
    at div
    at NavbarCollapse (webpack-internal:///(ssr)/./node_modules/flowbite-react/dist/esm/components/Navbar/NavbarCollapse.mjs:13:27)
    at div
    at div
    at nav
    at NavbarComponent (webpack-internal:///(ssr)/./node_modules/flowbite-react/dist/esm/components/Navbar/Navbar.mjs:25:28)
    at MegaMenuComponent (webpack-internal:///(ssr)/./node_modules/flowbite-react/dist/esm/components/MegaMenu/MegaMenu.mjs:21:30)
    at header
    at Header (webpack-internal:///(ssr)/./src/components/Header.js:22:88)
    at Lazy
    at body
    at html

I am using Next.js 14.2.4

Steps to reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'

Current behavior

Describe what is currently happening and why it's a problem.

Expected behavior

Describe what you expected to happen.

Context

What are you trying to accomplish? Does this only happen on a specific browser, screen size, or operating system?

If possible, provide a live example URL, screenshot, video, or a repository with the minimal reproduction of the issue.

主要言語
TypeScript
スター
2.2k
フォーク
504
平均マージ
19時間 16分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

themesberg/flowbite-react のほかの issue

themesberg/flowbite-react の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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