railsadminteam / rails_admin

RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
MIT License
7.87k stars 2.25k forks source link

Gem install error with importmap #3609

Closed kolasss closed 1 year ago

kolasss commented 1 year ago

Describe the bug When running install generator of the gem on the newest rails with importmap I've got an exception After debugging I found that importmap calling api.jspm.io/generate and the site returns Error: No provider named "jspm" has been defined. I don't know much about js generation, is it temporary error or we need to fix something?

Reproduction steps create new app rails new example-app add gem rails_admin and run bundle install run bin/rails g rails_admin:install

Expected behavior should install without errors

Additional context

mshibuya commented 1 year ago

The cause was a change on the jspm side. https://github.com/jspm/generator/pull/235 Though the fix is being in place on their side, I thought it's good to place a workaround on our side since it's a tiny change. Now fixed in the master.

Thank you for reporting! 👍