Bug Report: Duplicate Identifier 'UserIcon' #1196
-
Description Steps to Reproduce
Code Snippet import { UserIcon } from "@heroicons/react/20/solid";
import { UserIcon } from "@heroicons/react/24/outline"; Error Message
Expected Behavior Additional Context
Thank you for looking into this issue. Any guidance or fixes would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solution import { UserIcon as UserIconSolid } from "@heroicons/react/20/solid";
import { UserIcon as UserIconOutline } from "@heroicons/react/24/outline"; |
Beta Was this translation helpful? Give feedback.
Solution
One potential workaround is to alias one or both imports to avoid the duplicate identifier error. For example: