Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.3k
Improve setup instructions#8545
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
024db0e
to8b381a9
Compare- Separate database setup from server startup and clarifies asset handling process- Copy `cssbundling-rails` instructions from the Upgrading guide as a recommended approach for managing Tailwind CSS assets- Suggest starting the server with `bin/dev` to handle both web and CSS building processRef:#8538[ci skip]
8b381a9
toae6eeba
Comparerails importmap:install | ||
bundle add cssbundling-rails | ||
rails css:install:tailwind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It's not necessary to install tailwind. One can run commandrails css:install
and it should work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I mean, gem 'tailwindcss-rails' may not be installed
```sh | ||
bundle add importmap-rails | ||
rails importmap:install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
As far as I know from my upgrade experience - it's also not necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
rails importmap:install
is not necessary because it is being performed byrails g active_admin:install
```sh | ||
bin/dev | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think for those who doesn't have Procfile.dev you should give another option:
yarn build:css rails s
andrewroth commentedNov 26, 2024
Hi, I'm starting a new rails 8 app with active admin, and the styles didn't load at all, after following the basic guide. After some searching I came across this, and followed the commands, but I get Should I just go back to rails 7 for now and accept rails 8 and active admin are incompatible (is this actually the case)? Thanks. |
tagliala commentedNov 26, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
They are compatible: If you have some sort of edge cases, or different instructions, please provide more information so we can improve the installation guide edit: guide updated and tested again, I confirm that Rails 8.0 and Active Admin 4 beta are compatible |
andrewroth commentedNov 26, 2024
I still have no css after hours of effort. If I run
I've googled "Error: Cannot find module 'tailwindcss/plugin'" and tried every possible fix I can find with no success. |
andrewroth commentedNov 26, 2024
Is it possible to use active admin without tailwind? |
tagliala commentedNov 26, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Can you please provide the list of commands that you are executing? Also please include Ruby and Node versions
Can't tell, maybe there are infos here:#8223 |
andrewroth commentedNov 26, 2024
I am on an old node and osx, maybe that has something to do with it?
|
This may be an issue, but we are not aware of such issue. I remember that I couldn't update to v4 with Node 16, but I need to check why |
I'm successfully running the application with node |
andrewroth commentedNov 26, 2024
looks like assets are not being build Can you try |
renatoaug commentedJan 9, 2025
Hi, These are the instructions to create an app from scratch
|
renatoaug commentedJan 10, 2025
Hi@tagliala , I was talking about the broken layout: I followed all the steps herehttps://github.com/activeadmin/activeadmin/blob/master/UPGRADING.md to upgrade from v3 to v4 but I think the css is not being applied. |
teaforthecat commentedJan 26, 2025
Hi, just want to point out that this is a reasonable alternative to cssbundler if the goals are these:
bundle add dartsass-railsecho"Rails.application.config.dartsass.builds = {\n 'active_admin.scss' => 'active_admin.css'\n}"> config/initializers/dartsass.rbecho"sass: bin/rails dartsass:watch">> Procfile.devbin/dev I wonder if this could go into the |
Uh oh!
There was an error while loading.Please reload this page.
cssbundling-rails
instructions from Upgrading guide as a recommended approach for managing Tailwind CSS assetsbin/dev
to handle both web and CSS building processes.Ref:#8538
[ci skip]