Closed punkstar closed 1 week ago
same happens on Rails 7.1.3.4 and rails admin 3.1.4, ruby 3.3.0
original issue https://github.com/railsadminteam/rails_admin/issues/3609
P.S. I've tried with 3.1.2 but got the same error
Check this out - https://github.com/railsadminteam/rails_admin/issues/3683
I'm not familiar with jspm / importmaps, etc, so take this with a pinch of salt. This issue looks like this is related to the fact that we reference a package in the codebase that's no longer present in jQuery UI.
When running the import map generator for rails_admin@3.2.0-beta
(in fact, going back to >3.0
) I get the error:
Error: No './ui/ie.js' exports subpath defined in https://ga.jspm.io/npm:jquery-ui@1.14.0/ resolving jquery-ui/ui/ie.js imported from https://ga.jspm.io/npm:rails_admin@3.1.0-beta/src/rails_admin/base.js.
We can see the file referenced:
However, this file was removed from jquery-ui in 1.14.0.
The package.json
used to build 3.2.0-beta
constrains jquery-ui
to ^1.12.1
.
As I'm writing this, I noticed a constraint change committed as part of https://github.com/railsadminteam/rails_admin/commit/5245d5bb91691d646219b5243f3f881a0144a3fd which looks promising from @mshibuya 🥳
I'm running into this issue as well. It tried using the master branch, did not help. Does the NPM package need to be updated as well?
I'm running into this issue as well. It tried using the master branch, did not help. Does the NPM package need to be updated as well?
I believe so, RailsAdmin::Version.js
will return 3.2.0-beta
.
This was fixed as 3.2.0.rc was released. Please use it.
Describe the bug Unable to run
rails g rails_admin:install
on a fresh Rails project.Reproduction steps
Full output from g rails_admin:install
``` ? Where do you want to mount rails_admin? PressExpected behavior Expect
rails r rails_admin:install
to succeed.Additional context
rails
version:7.2.0
rails_admin
version:3.2.beta
rails_admin
npm package version: Not sure how to check this.