Skip to content

Vendorized FontAwesome is unreadable with Sprockets 4 #3204

@bodrovis

Description

@bodrovis

After upgrading to Sprockets 4, admin page stops working at all:

Error: File to import not found or unreadable: rails_admin/font-awesome.
        on line 60:1 of F:/Ruby25/lib/ruby/gems/2.5.0/gems/rails_admin-2.0.0/app/assets/stylesheets/rails_admin/rails_admin.scss.erb
>> @import 'rails_admin/font-awesome';

Commenting out the specified line fixes the issue. This happens on Rails 6 on Windows and Mac.

Here is a sample fresh app demonstrating the problem: https://github.com/bodrovis/RailsAdminSprockets To reproduce:

  1. Clone the repo
  2. Install gems
  3. Run server
  4. Visit http://localhost:3000/admin
  5. Observe the error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions