#Warning: React does not recognize the `dataSlot` prop on a DOM element.

37 messages · Page 1 of 1 (latest)

pure cosmos
#

I don't know what happend with my project, i already check everything in my code, and nothing wrong with it, and it doesn't show any error in my VSC but in my console there is a warning like this, what happend actually? can someone tell me... THANKS

celest pebbleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

stoic totem
#

can you share your code

#

search dataSlot in your code, its added in a element, thats causing the err

stoic totem
pure cosmos
#

ah mb wait

#

Still the same

stoic totem
#

do you have a DropdownComponent?

pure cosmos
#

from NextUI

#

and i have my own component called DropdownMenu

stoic totem
#

Do you have a HiBookOpen

#

component

pure cosmos
#

Yess from React-icons

stoic totem
#

Yup, thats causing the error

#

It is returning a svg

#

which has an invalid attribute dataSlot

#

dataSlot

#

@pure cosmos

#

Is your issue resolved?

pure cosmos
stoic totem
#

or create a issue in that github

pure cosmos
#

AHHHH

#

its gone

#

hehe

#

i seee

#

so thats the library fault

stoic totem
celest pebbleBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer
pure cosmos
pure cosmos
stoic totem
#

I use fontawesome

#

I think lucide-react is also good, haven't personally used it

pure cosmos
queen meteor