Reputation: 23581
I'm trying to import both solid and regular icons
import {
faFile
} from '@fortawesome/free-solid-svg-icons'
import {
faFile
} from '@fortawesome/free-regular-svg-icons'
But faFile
cannot be defined again, what should I do?
Upvotes: 5
Views: 953
Reputation: 138666
You can rename the import:
import {
faFile as faFileSolid
} from '@fortawesome/free-solid-svg-icons'
import {
faFile as faFileRegular
} from '@fortawesome/free-regular-svg-icons'
Upvotes: 5