engine_cart icon indicating copy to clipboard operation
engine_cart copied to clipboard

Rails 7 assets install fails

Open jcoyne opened this issue 3 years ago • 0 comments

It seems like it can't find the rails tasks for the gem it just installed:

Using rails 7.0.0.rc1
Using importmap-rails 0.9.3
Using stimulus-rails 0.7.3
Using turbo-rails 7.1.1
Bundle complete! 11 Gemfile dependencies, 53 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
         run  bundle binstubs bundler
       rails  importmap:install
DEPRECATION WARNING: This manually engine loading is deprecated and will be removed in v3.0.0. Remove `require "view_component/engine"`. (called from <top (required)> at /Users/jcoyne85/workspace/projectblacklight/blacklight/lib/blacklight/engine.rb:3)
DEPRECATION WARNING: This manually engine loading is deprecated and will be removed in v3.0.0. Remove `require "view_component/engine"`. (called from <top (required)> at /Users/jcoyne85/workspace/projectblacklight/blacklight/lib/blacklight/engine.rb:3)
warning: parser/current is loading parser/ruby27, which recognizes
warning: 2.7.5-compliant syntax, but you are running 2.7.2.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
rails aborted!
Don't know how to build task 'importmap:install' (See the list of available tasks with `rails --tasks`)

(See full trace by running task with --trace)

The gem is added here: https://github.com/rails/rails/blob/main/railties/lib/rails/generators/app_base.rb#L317

and bundle install is called here: https://github.com/rails/rails/blob/main/railties/lib/rails/generators/app_base.rb#L414 And the generator is called here: https://github.com/rails/rails/blob/main/railties/lib/rails/generators/app_base.rb#L421

Possibly the problem is: "BUNDLE_GEMFILE"=>"/Users/jcoyne85/workspace/projectblacklight/blacklight/Gemfile"

jcoyne avatar Dec 08 '21 01:12 jcoyne