Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.3k
-
💥 unsure how to fix, but following the guides (https://activeadmin.info/0-installation.html) seems broken. |
BetaWas this translation helpful?Give feedback.
All reactions
😕 1👀 1
Replies: 15 comments 21 replies
-
|
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for early testing against 8.1 I will start checking rails-edge compatibility as a low priority task after we merge#8500 (which is blocked upstream) |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
This also reproduced in rails 8.0. Steps:
Am I missing some command or gem? Or maybe options to create blank rails app? |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello, I think that you are very close And then run instead of If you have problems, please post the output of References:
I think that installation instructions should be slightly modified,however this depends on the use case. I suspect there are several ways of installing ActiveAdmin, one does not even include node, so I don't know what the default way should be |
BetaWas this translation helpful?Give feedback.
All reactions
👍 4❤️ 3🚀 1
-
It would be really great, if I don't have such dependencies, as node/yarn. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I believe For example, doing such conversion in
|
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Ok thanks, it's Node 23. As a workaround, please switch to 22 LTS Ref:#8534 |
BetaWas this translation helpful?Give feedback.
All reactions
🚀 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
i am also facing the same issue as some one new to rails already i want to solve this issue but can't find any solution been messing with the internet for around 4 5 hours |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
So it appears to be a problem with Propshaft, but as far as I can see the default javascript for Rails 8 is importmap ActiveAdmin uses importmap by default, the generator has this line: activeadmin/tasks/test_application.rb Line 51 in25a6b36
Reference to propshaft:#8298 (comment) PRs and investigations are welcomed edit 1I can see propshaft in the Gemfile of the test app |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Sorry, probably it is Ref:https://github.com/activeadmin/activeadmin/blob/master/UPGRADING.md#from-v3-to-v4-beta Please add this gem and try again. This is mentioned in the upgrade guide but not in the first install guide, because I guess it is "optional" and depends on the approach used to load Active Admin |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks@tagliala, with the |
BetaWas this translation helpful?Give feedback.
All reactions
-
@justinperkins try to follow#8538 (reply in thread) for new app or#8538 (reply in thread) for existing app |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thank you,@tagliala! I'm finally done with starting application with builded styles. Following discussion header,this also works on rails 8.1.0.alpha:#8538 (reply in thread) Important note: node version must be lower than 23. Also, it would be great, if we have some way to install and make things work without node/yarn. |
BetaWas this translation helpful?Give feedback.
All reactions
-
awesome. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
My environment. For an existing application, which didn't support any assets earlier, I had to do this steps:
It generates me package.json with following lines: {"dependencies": {"@activeadmin/activeadmin":"4.0.0-beta13" },"scripts": {"build:css":"tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c .tailwind-active_admin.config.js" }}
But here my activeadmin page still looks like there is no styles. So..
{"name":"my_app","private":"true","dependencies": {"@activeadmin/activeadmin":"4.0.0-beta13","tailwindcss":"^3.4.15","autoprefixer":"^10.4.20","postcss":"^8.4.49" },"scripts": {"build:css":"tailwindcss -i ./app/assets/stylesheets/active_admin.css -o ./app/assets/builds/active_admin.css --minify -c ./app/assets/config/tailwind-active_admin.config.js" }}As far as I understand,
And I change path to tailwind-active_admin.config.js in my package.json
NOTE: don't forget to add these lines to IT WORKS!with a little bug My icons for toggling dark mode and user's account were not icons, but text: The problem was in LANG.activeadmin.yml. I need to add lines to .yml file: LANG:activeadmin:toggle_dark_mode:Toggle dark modetoggle_main_navigation_menu:Toggle main navigation menutoggle_section:Toggle sectiontoggle_user_menu:Toggle user menu So,@tagliala, I believe, that all locales files in repositorymust have these four lines, at least, in English. I can make a PR with adding English translations of this four fields to each locale. |
BetaWas this translation helpful?Give feedback.
All reactions
-
is there any way we can get this running with no-build basically, so zero dependency on yarn etc? |
BetaWas this translation helpful?Give feedback.
All reactions
-
This should not be a problem in production. In development you can spot the problem and send a PR for your locale
There is another discussion for that, please ask there:#8223 |
BetaWas this translation helpful?Give feedback.
All reactions
-
For those who followed these steps without success, there is one small thing to add.@tagliala and@PoroshkinaVV, thanks so much for the research. If you use Tailwind 4, So make sure to change this in your active_admin.css file so it works properly |
BetaWas this translation helpful?Give feedback.
All reactions
👍 3
-
If there is an answer for 8.1 alpha, please mark the answer as answer and close this discussion, thanks! |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hello, suggestions on this PR are welcomed:#8545 |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I managed to have it displayed correctly but I'm stuck with the JS. I'm not using Customization
I need to keep all of them, even if I'm only updating @tagliala maybe you have an idea about this behavior?
<%= stylesheet_link_tag "active_admin", "data-turbo-track": "reload"%><metaname="viewport"content="width=device-width,initial-scale=1»<%=csrf_meta_tags%><%=csp_meta_tag%><%# On page load or when changing themes, best to add inline in `head` to avoid FOUC%><%= javascript_tag nonce: true do%> if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { document.documentElement.classList.add('dark') } else { document.documentElement.classList.remove('dark') }<% end%><%= javascript_include_tag "active_admin", "data-turbo-track": "reload"%>
Aim is to keep
RunI first need to run `` to it generates JS ProblemWith about I've created I got this final error: This is coming from this DOM |
BetaWas this translation helpful?Give feedback.
All reactions
-
hi everyone, this gem helped mehttps://github.com/jaynetics/activeadmin_assets/ |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Thank you! The simplicity of adding an admin gem has gone out the window with Version 4 of AA :-/ |
BetaWas this translation helpful?Give feedback.
All reactions
This comment was marked as off-topic.
This comment was marked as off-topic.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hello, I've noticed that my instructions above don't work anymore. This is mostly because TailwindCSS v4. Since ActiveAdmin uses v3, it is a mess to make it work Please always remember that there is not a single way to configure assets, this is just one of the possible approaches.Do whatever is the best for your project The following should work: And then run |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
-
I ran into the same solution yesterday! I was planning to share it today, but you beat me to it. Thanks for sharing@tagliala ! 😄 |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
My running environment gem "rails", "~> 8.0.2" |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
This is Active Admin 3, correct? This discussion is related to the master branch (v4 beta) |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
It's Active admin V3.3.0 |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Still facing the issue.Environment DetailsVersions
Gemfile Configurationgem"rails","~> 8.1.1"gem"propshaft"# Rails 8 default asset pipelinegem"dartsass-rails"gem"activeadmin","~> 3.4" error logs: |
BetaWas this translation helpful?Give feedback.
All reactions
❤️ 1
-
Hi@tagliala can you please find the possible solution for this version also ? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Reference to propshaft, valid for v4:#8298 (comment) |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #8537 on November 12, 2024 16:50.



