Bacancy Technology
Bacancy Technology represents the connected world, offering innovative and customer-centric information technology experiences, enabling Enterprises, Associates and the Society to Rise™.
12+
Countries where we have happy customers
1050+
Agile enabled employees
06
World wide offices
12+
Years of Experience
05
Agile Coaches
14
Certified Scrum Masters
1000+
Clients projects
1458
Happy customers
Artificial Intelligence
Machine Learning
Salesforce
Microsoft
SAP
October 9, 2023
You might be trying to import icons from both v1 and v2:
To resolve this issue, we need to make sure that we’re using the correct version of Heroicons consistently throughout our project.
Since the error mentions that we’ve installed Heroicons v1, we need to ensure that we’ve done this:
npm install @heroicons/react@v1
Then in our component, we should import like this:
import { SearchIcon, PlusCircleIcon, UserGroupIcon, HeartIcon, PaperAirplaneIcon, MenuIcon } from "@heroicons/react/outline";
If the error still persists, double-check the following:
1. Clear your npm cache by running npm cache clean –force.
2. Restart your development server.