-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On install : the asset "active_admin.css" is not present in the asset pipeline. #6007
Comments
It looks like this is solved by |
In my case that command did not solved the error because I already had the files |
I think you're supposed to use |
Actually scratch that since I just realized that Could you share some steps to reproduce this? |
Upgraded from rails 4 to rails 6, In the development envirobment everything works ok. In the production has the same error. |
Could you share some steps to reproduce this? |
@Arugin and others still experiencing this problem. I had this issue today with an app that was initially built in Rails 5 and that I recently updated to Rails 6. What fixed it for me was running I hadn't done that before now; I'd only updated the Rails Gem. After doing that, Active Admin loads without any problems. With my install, the newly updated ...which I believe is the Rails 6 way of disabling the asset pipeline (and which suits me fine as this app is API-only apart from ActiveAdmin). But I tried loading the app wth |
This problem can occur with Rails 6 apps as they use Webpacker as the default asset generator. You need to explicitly configure activeadmin to use webpacker. at active_admin installation: If already installed: add Source: https://activeadmin.info/0-installation.html#setting-up-active-admin |
Thanks! This fixed the issue for me! |
This happened to me on a fresh Rails 6 site. It only manifested in the production deployment. |
Seems like I'm having the same issue with a fresh install of Active Admin. Followed the instructions in: https://activeadmin.info/0-installation.html#setting-up-active-admin EDIT: Solved. Nothing to do with the setup. Just needed to rebuild the webpacker assets and it was good to go. Silly me. @mmell you might want to give this a try. |
Setting |
In case someone still having the same issue after trying all the solutions above. I opened the
Somehow, my app wants to have the webpacker to also emit the css for the active_admin.css to be identified. Hopefully it will help someone here |
Happens when there's no |
Did you find a bug?
On a fresh install with rails 6 and rails-sass no assets get installed and going to '/admin' results in an error: The asset "active_admin.css" is not present in the asset pipeline.
Expected behavior
Should go to a login screen
Actual behavior
An error is thrown
How to reproduce
Fresh install according to the guide's 'Installation' section
The text was updated successfully, but these errors were encountered: