-
Notifications
You must be signed in to change notification settings - Fork 2.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
Fresh install fails #3648
Comments
@Andrew-Max check out this closed solution... https://github.com/railsadminteam/rails_admin/issues/3572#issuecomment-1327976864 I was getting the same issue and after updating my package.json file to include the rails_admin content, and running package.json looks like this
I also had to get my manifest.js file updated with
|
I am running into this on a fresh install but running |
Ok I missed some red output during You need to merge "scripts": {
"build:css": "sass ./app/assets/stylesheets/rails_admin.scss:./app/assets/builds/rails_admin.css --no-source-map --load-path=node_modules"
} into the existing scripts in your package.json.
Taking 'build:css' as an example, if you're already have application.sass.css for the sass build, the resulting script would look like:
sass ./app/assets/stylesheets/application.sass.scss:./app/assets/builds/application.css ./app/assets/stylesheets/rails_admin.scss:./app/assets/builds/rails_admin.css --no-source-map --load-path=node_modules Correctly following those instructions fixed my issue. |
The installer adds a bunch of unnecessary files for rails 7 apps (yarn.lock, package.json, node_modules, rails_admin.js, etc) if you remove everything it generates except the |
fixed for all here #3683 |
sir you saved my life 😊 |
Describe the bug
If I create a new rails 7 app and follow the install instructions, the application will not run. It fails with this error
Reproduction steps
Create a new rails 7 app and exactly follow the install instructions
Expected behavior
Installation works using the docs
Additional context
The text was updated successfully, but these errors were encountered: