Skip to content

Fix File to import not found or unreadable: font-awesome-sprockets#163

Open
EdCordata wants to merge 1 commit into
resque:masterfrom
EdCordata:fix/file-to-import-not-found-or-unreadable-font-awesome-sprockets
Open

Fix File to import not found or unreadable: font-awesome-sprockets#163
EdCordata wants to merge 1 commit into
resque:masterfrom
EdCordata:fix/file-to-import-not-found-or-unreadable-font-awesome-sprockets

Conversation

@EdCordata

Copy link
Copy Markdown

Fixes #162

@vgunawan

Copy link
Copy Markdown

Any chance to get this merged @steveklabnik? I have the same issue and will need to fork atm.

@steveklabnik

Copy link
Copy Markdown
Member

I haven't worked on Resque in years, sorry!

@garybunofsky

Copy link
Copy Markdown

@vgunawan I am running into the same issue. Sounds like I should just fork

diei added a commit to diei/resque-web that referenced this pull request Nov 2, 2022
@hron84

hron84 commented Dec 28, 2022

Copy link
Copy Markdown

@EdCordata thank you for fixing this issue! I just ran into it and I found this PR here.

=require twitter-bootstrap-static/bootstrap
*/

@import "font-awesome-sprockets";

@toomanyjoes toomanyjoes Jul 26, 2023

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this doesn't break for everyone else wouldn't you want to do something like this?

$rails_version: '#{asset-path("config/application.rb")}';
@if ($rails_version < 6) {
  // Import sprockets only if the Rails version is less than 6
  @import "font-awesome-sprockets";
}
# config/application.rb or an initializer

# Set a custom environment variable to indicate the Rails version
Rails.application.config.rails_version = Rails.gem_version

I'm not entirely sure this works as written as it was generated by chatGPT but some author who knows scss syntax better than me could clean it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File to import not found or unreadable: font-awesome-sprockets

6 participants