Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
export 'default' (imported as 'FontAwesomeIcon') was not found in '@fortawesome/react-fontawesome' (possible exports: FontAwesomeIcon)

I downloaded fontawesome icons on vs code terminal with "npm i @fortawesome/react-fontawesome" and then other free solid and brands svg icons like this "npm i @fortawesome/free-brands-svg-icons"; "npm i @fortawesome/free-solid-svg-icons". Then when I wrote code with this icon, it shows me an error((.

`import './index.scss' import { Link, NavLink } from 'react-router-dom' import FontAwesomeIcon from '@fortawesome/react-fontawesome' import { faHome } from '@fortawesome/free-solid-svg-icons'

const SideBar = () => {

    <nav>
        <NavLink exact="true" activeclassname="active" to="/">
            <FontAwesomeIcon icon={faHome} color="#4d4" />
        </NavLink>
    </nav>
</div>

}

export default SideBar `

about 4 years ago · Santiago Gelvez
1 Respuestas
Responde la pregunta

0

The FontAwesomeIcon is not exported as default. You can import it with brackets around it.

import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";

about 4 years ago · Santiago Gelvez Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda