wangchucheng / hugo-eureka

Eureka is a feature-rich and highly customizable Hugo theme.
https://www.wangchucheng.com/en/docs/hugo-eureka/
Apache License 2.0
920 stars 192 forks source link

Failed to transform "js/fontawesome.js" #192

Closed onkoe closed 2 years ago

onkoe commented 2 years ago

Describe the bug

When running Hugo in my project folder, I get the following error:

barrett@mocha ~/D/onkoe.github.io (monolingual) [255]> hugo server
Start building sites …
hugo v0.98.0+extended linux/amd64 BuildDate=unknown
Error: Error building site: JSBUILD: failed to transform "js/fontawesome.js" (application/javascript): The symbol "faEnvelope" has already been declared
Built in 49 ms
barrett@mocha ~/D/onkoe.github.io (monolingual) [255]>

To Reproduce

Does this issue reproduce with the latest release? Yes, v0.9.1

Steps to reproduce the behavior:

  1. Type a Hugo command such as hugo server or just hugo
  2. Fails to launch anything

Expected behavior As with previous runs, it should just open the website in my browser. I may have touched something I shouldn't have, but all I did was remove some of the sample content. Have I made a configuration error?

Environment

Additional context Already tried clearing /tmp/hugo_cache a few times - doesn't seem to change anything! If it helps, you may see the changes I made from the default repo with this commit! Thanks for the great project! Until now, this theme has been amazing to use! :)

wangchucheng commented 2 years ago

Can you share a repo which has this issue? I think there might be something wrong with the variable declaration but I can not debug it without examples.

onkoe commented 2 years ago

Can you share a repo which has this issue? I think there might be something wrong with the variable declaration but I can not debug it without examples.

I linked a repo in the final paragraph of my issue. If this one doesn't work, or isn't minimal enough, please let me know! :)

wangchucheng commented 2 years ago

Hi @onkoe,

I found that the envelope icon was in fas package not in fab. After that, your repo should be good to go. Please note the you may want to use the latest Eureka (0.9.2) I just push as it fixed a bug which you may encounter.