Warning: React does not recognize the `dataSlot` prop on a DOM element.
Answered
Cairn Terrier posted this in #help-forum
Cairn TerrierOP
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
35 Replies
can you share your code
search
dataSlot in your code, its added in a element, thats causing the err@"use php" search `dataSlot` in your code, its added in a element, thats causing the err
Cairn TerrierOP
Nothing
@Cairn Terrier Nothing
dataSlot, not dataslotCairn TerrierOP
ah mb wait
Still the same
do you have a
DropdownComponent?@"use php" do you have a `DropdownComponent`?
Cairn TerrierOP
yes i have it
from NextUI
and i have my own component called
DropdownMenuDo you have a
HiBookOpencomponent
Cairn TerrierOP
Yess from React-icons
Yup, thats causing the error
Answer
It is returning a svg
which has an invalid attribute
dataSlotdataSlot@Cairn Terrier
Is your issue resolved?
@"use php" Yup, thats causing the error
Cairn TerrierOP
Okayy, soo what should i do? i need that icons, wait i will try to delete everything using that icons
@Cairn Terrier Okayy, soo what should i do? i need that icons, wait i will try to delete everything using that icons
Maybe use a different icon library, or directly copy svg from source and fix it?
or create a issue in that github
Cairn TerrierOP
AHHHH
its gone
hehe
i seee
so thats the library fault
@"use php" which has an invalid attribute `dataSlot`
Mark solution please
@"use php" Mark solution please
Cairn TerrierOP
done
@"use php" Mark solution please
Cairn TerrierOP
btw any suggestion for icons library?
I use fontawesome
I think
lucide-react is also good, haven't personally used it@"use php" I think `lucide-react` is also good, haven't personally used it
Cairn TerrierOP
thanks i will try that
@Cairn Terrier thanks i will try that
Tabler icons is worth checking out too
@cougarb8 Tabler icons is worth checking out too
Cairn TerrierOP
nice, thanks i will check it later