Fix File to import not found or unreadable: font-awesome-sprockets#163
Open
EdCordata wants to merge 1 commit intoresque:masterfrom
Open
Conversation
|
Any chance to get this merged @steveklabnik? I have the same issue and will need to fork atm. |
Member
|
I haven't worked on Resque in years, sorry! |
|
@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
|
@EdCordata thank you for fixing this issue! I just ran into it and I found this PR here. |
toomanyjoes
reviewed
Jul 26, 2023
| =require twitter-bootstrap-static/bootstrap | ||
| */ | ||
|
|
||
| @import "font-awesome-sprockets"; |
There was a problem hiding this comment.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #162