Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A administrate
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 96
    • Issues 96
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 32
    • Merge requests 32
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • thoughtbot, inc.
  • administrate
  • Issues
  • #2151
Closed
Open
Issue created Mar 02, 2022 by Sébastien Dubois@sedubois

Hard dependency on Sprockets prevents migration to Propshaft

  • What were you trying to do?

I am following the Propshaft upgrade guide. After replacing Sprockets with Propshaft in my Gemfile, I expect Sprockets-related errors to disappear and Administrate views to render correctly.

  • What did you end up with (logs, or, even better, example apps are great!)?

Sprockets is still invoked as it's a transitive gem dependency of Administrate, leading to Sprockets::Railtie::ManifestNeededError: Expected to find a manifest file in app/assets/config/manifest.js. As a workaround, an empty app/assets/config/manifest.js file can be kept.

However then, I get the error Propshaft::MissingAssetError: The asset 'administrate/application.css' was not found in the load path which appears to come from app/views/administrate/application/stylesheet.html.erb.

It looks like propshaft and sprockets do not play along each other nicely, and Administrate should support working with Propshaft, otherwise it prevents applications from migrating.

  • What versions are you running?
    • Rails 7.0.2.2
    • administrate 0.17.0 rev 3b2413ac
Assignee
Assign to
Time tracking