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

Đang mở
#1,426 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Lĩnh vực
frontend

Hướng nghiên cứu

Bắt đầu với stack trace SSR đã được báo cáo và kiểm tra node_modules/flowbite-react/dist/esm/components/Navbar/NavbarLink.mjs, sau đó kiểm tra cách sử dụng được thể hiện trong src/components/Header.js. Tái hiện cảnh báo với thiết lập Next.js đã được báo cáo; hoàn tất khi cảnh báo về thuộc tính không phải boolean không còn được phát ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

  • 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.

Ngôn ngữ chính
TypeScript
Star
2.2k
Fork
504
Merge trung bình
19 giờ 16 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của themesberg/flowbite-react

Tất cả issue của themesberg/flowbite-react

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.