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

706
Views
Please how can I fix this error in my react app

Module not found: Error: Can't resolve '@fortawesome/fontawesome-svg-core' in 'C:\Users\ANNOH\Desktop\React_Portfolio\react-portfolio\node_modules@fortawesome\react-fontawesome'
ERROR in ./node_modules/@fortawesome/react-fontawesome/index.es.js 1:0-64
Module not found: Error: Can't resolve '@fortawesome/fontawesome-svg-core' in 'C:\Users\ANNOH\Desktop\React_Portfolio\react-portfolio\node_modules@fortawesome\react-fontawesome'

webpack compiled with 1 error

import { Link, NavLink } from 'react-router-dom'
import './index.scss'
import LogoS from '../../assets/images/logo-s.png'
import LogoSubtitle from '../../assets/images/logo_sub.png'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faHome } from '@fortawesome/free-solid-svg-icons'

const Sidebar = () => (
    <div className='nav-bar'>
     <Link className='logo' to='/'>
        <img src={LogoS} alt="logo" />
        <img className='sub-logo' src={LogoSubtitle} alt="slobodan" />
     </Link>
    <nav>
        <NavLink exact="true" activeclassname="active" to="/" >
            <FontAwesomeIcon icon={faHome} color="#4d4d4e" />
        </NavLink>
    </nav>
  </div>
 )
 
export default Sidebar
about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Have you followed the necessary steps in order?

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

npm i --save @fortawesome/fontawesome-svg-core 
npm i -- save @fortawesome/free-solid-svg-icons
npm i --save @fortawesome/react-fontawesome
about 4 years ago · Juan Pablo Isaza Report

0

That's because you didn't install node modules from package.json. If you use npm you have to do npm install. Or if you use yarn you have to do yarn install. If you already installed node_modules from package.json, then if you still have the issue, I suggest to delete node_modules directory and redo npm install or yarn install

about 4 years ago · Juan Pablo Isaza Report

0

Please post your package.json file so to be able to better determine the cause of the issue.

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!