1
resposta

não consigo usar o projeto do git hub

Failed to compile ./src/theme/components.js:2:0 Module not found: Can't resolve '@fortawesome/react-fontawesome' 1 | import React from 'react';

2 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; 3 | import * as iconSet from "@fortawesome/free-solid-svg-icons"; 4 | 5 | import { theme } from './theme';

Import trace for requested module: ./src/screens/HomeScreen/index.js ./pages/index.js

https://nextjs.org/docs/messages/module-not-found This error occurred during the build process and can only be dismissed by fixing the error.

1 resposta

Gabriel, experimenta instalar as dependências do font awesome:

yarn add @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome