Comments (6)
Did you find the solution?
Here it is, in your application.scss:
@use 'font-awesome' with ($fa-font-path: 'font-awesome');
from font-awesome-sass.
@Ozkee thanks for this. nothing worked until i found this issue and your comment.
from font-awesome-sass.
Actually @Ozkee's suggestion got the icons working for me, for example when i do
<%= icon('fa-brands', 'font-awesome')%>
everything works, but I too am seeing some 404s in the console. Not causing me issues but wondering if i'm still missing something.
Started GET "/webfonts/fa-solid-900.woff2" for ::1 at 2023-12-29 09:40:41 -0600
ActionController::RoutingError (No route matches [GET] "/webfonts/fa-solid-900.woff2"):
Started GET "/webfonts/fa-solid-900.ttf" for ::1 at 2023-12-29 09:40:41 -0600
ActionController::RoutingError (No route matches [GET] "/webfonts/fa-solid-900.ttf"):
Started GET "/webfonts/fa-regular-400.woff2" for ::1 at 2023-12-29 09:40:41 -0600
ActionController::RoutingError (No route matches [GET] "/webfonts/fa-regular-400.woff2"):
Started GET "/webfonts/fa-regular-400.ttf" for ::1 at 2023-12-29 09:40:41 -0600
ActionController::RoutingError (No route matches [GET] "/webfonts/fa-regular-400.ttf"):
i checked and using an fa-regular icon is working.
from font-awesome-sass.
@joshuacronemeyer, I have changed _variables.scss from
$fa-font-path : "../webfonts" !default;
to
$fa-font-path : "assets/font-awesome/webfonts" !default;
and fixed all routing errors. Just check your path matches.
With this change you don't need to add the @use
statement to your application.scss
from font-awesome-sass.
ok interesting @fschiefelbein so are you rebuilding a gem from your own fork or are you overriding this somehow in your app. I see the file and line you've changed, just wondering what's the best way to incorporate it. I wonder if you made a PR for this if they would merge it
from font-awesome-sass.
I came across this issue without using the gem, I am just using dartsass-rails and hosting fontawesome files. I changed my _varialble.scss file in my app. I didn't make a PR for this.
from font-awesome-sass.
Related Issues (20)
- Accessibility Issue: Choice in Tags
- Not compatible with non-root applications HOT 2
- Where is 5.8.2?
- Layout Issue w/ Duotone HOT 1
- 404 link on README - getting started HOT 1
- Update to 5.12.0 HOT 1
- How to rebuild fa-spin to control how it works? HOT 1
- no git tag for 5.13.0 so file-diff is not appeared at dependabot HOT 3
- Issues when using @use
- Preload
- Check if icon name exists / get list of all icon names
- Some icons do not show in Chrome when using the ruby gem in development
- Error: Can't find stylesheet to import. in rails 7 HOT 5
- Font Awesome v6 HOT 2
- Missing documentation about removal of font-awesome-sprockets HOT 4
- Only "fas fa" icons appear
- Switch to dart sass HOT 5
- gem files not found during assets:precompile HOT 1
- Missing releases on github?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-awesome-sass.