I created my project using create-react-app and keeps returning these warnings when I import any of FortAwesome libs
Errors:
[...]/frontend/node_modules/process/browser.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
(webpack)/buildin/global.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Icon.jsx:
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { library } from "@fortawesome/fontawesome-svg-core"
import { fas } from "@fortawesome/free-solid-svg-icons"
import { far } from "@fortawesome/free-regular-svg-icons"
library.add(fas, far)
const Icon = props => (
<FontAwesomeIcon icon={[props.type || 'fas', props.name]}/>
)
export default Icon
I created my project using create-react-app and keeps returning these warnings when I import any of FortAwesome libs
Errors:
Icon.jsx: