Closed Soviut closed 5 years ago
Hi! Thanks for using my module! Sadly, your problem has nothing to do with it, just read the docs carefully. When you see the message
"export 'at' (imported as 'fortawesomefreesolidsvgicons_at') was not found in '@fortawesome/free-solid-svg-icons'
that's just because such import is not there - you can open library's sources and check. All icons are named as faPhone
, not phone
.
So, in your case, working config is:
modules: [
['nuxt-fontawesome', {
component: 'fa',
imports: [
{
set: '@fortawesome/free-solid-svg-icons',
icons: ['faPhone', 'faAt', 'faEnvelope']
},
{
set: '@fortawesome/free-brands-svg-icons',
icons: ['faFacebook', 'faTwitter', 'faInstagram']
}
]
}],
],
Hope this helps, cheers:)
Thanks, that's exactly what my problem was. Somehow I was able to get icons loading with icons: ['faPhone', 'faAt', 'faEnvelope']
but it stopped working when I added the brands icons.
I have the following configuration in my
nuxt.config.js
fileBut started getting the following errors
In the generated file mentioned, the imports looked like
This seems to be throwing errors because it's looking for the
node_modules
directory but since we're in the.nuxt/
directory, it can't find it.I tried a workaround by changing the
set
s to use relative pathsset: '../@fortawesome/free-solid-svg-icons'
. But now I get