We wanted to update all our used libs in our Node.js/Nuxt/Vue application. And so we arrived at Font Awesome.
Before the update we used:
"@fortawesome/fontawesome-svg-core": "1.2.30",
"@fortawesome/free-brands-svg-icons": "5.14.0",
"@fortawesome/pro-regular-svg-icons": "5.14.0",
And we updated them to:
"@fortawesome/fontawesome-svg-core": "^6.1.1",
"@fortawesome/free-brands-svg-icons": "^6.1.1",
"@fortawesome/pro-regular-svg-icons": "^6.1.1",
I include here a screenshot of the before and after result of our left menu.
The encircled items should have unique icons like the left version. However in some occasions it renders wrong icons, it looks likes it takes the icon from the item above.
In developer tools the HTML for one menu item with a wrong icon looks like the following:
You see the correct class in the icon element but the svg element somehow gets the class from the menu item above it. It should use the fa-cogs and not the fa-chart-line.
I want to point out that we did not change anything code wise.
Did anyone encounter something similar after updating the font awesome libs? Or knows a solution to this problem?