Skip to content

Bug Report: Duplicate Identifier 'UserIcon' #1196

Answered by TheRedRacing
TheRedRacing asked this question in Help
Discussion options

You must be logged in to vote

Solution
One potential workaround is to alias one or both imports to avoid the duplicate identifier error. For example:

import { UserIcon as UserIconSolid } from "@heroicons/react/20/solid";
import { UserIcon as UserIconOutline } from "@heroicons/react/24/outline";

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheRedRacing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant