Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
I cannot import fontawesome icons in my react project. (reactv6)

This is my code snippet.

import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; 
import { faQuestionCircle, faExclamationCircle, faCog,} from "@fortawesome/free-solid-svg-icons";

 <div className="action-btn">
        <FontAwesomeIcon className="icon-block" icon={faQuestionCircle} />
        <FontAwesomeIcon className="icon-block" icon={faExclamationCircle} />
        <FontAwesomeIcon className="icon-block" icon={faCog} />
</div>

I installed the required packages yet I received the error "Module not found: Error: Can't resolve '@fortawesome/react-fontawesome' "

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I found the fix for v6 we need to

$ npm i --save @fortawesome/react-fontawesome@latest

Refer https://fontawesome.com/v6/docs/web/use-with/react/

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!