Hello:wave:. Has anyone run into this issue while ...
# support
d
Hello👋. Has anyone run into this issue while deploying to Heroku?
gem 'rails', '>= 7.0.2.4'
gem "solidus", "~> 3.2"
gem "solidus_frontend", "~> 3.2"
gem "solidus_stripe", "~> 4.3"
remote:        Please report any issues at:
remote:        - <https://github.com/solidusio/solidus/issues>
remote:        - <http://slack.solidus.io/>
remote:        -------------------------------------------------------------
remote:        Bundle completed (10.77s)
remote:        Cleaning up the bundler cache.
remote:        Removing strong_migrations (1.2.0)
remote: -----> Installing node-v16.13.1-linux-x64
remote: -----> Installing yarn-v1.22.17
remote: -----> Detecting rake tasks
remote:
remote:  !
remote:  !     Could not detect rake tasks
`remote: ! ensure you can run
$ bundle exec rake -P
against your app`
remote:  !     and using the production group of your Gemfile.
remote:  !     rake aborted!
remote:  !     LoadError: cannot load such file -- rexml/document
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb27in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/activemerchant-1.126.0/lib/active_merchant.rb37in
<main>'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb30in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb30in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/solidus_stripe-4.3.0/lib/solidus_stripe.rb3in
<main>'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb30in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb30in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb60in
block (2 levels) in require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb55in
each'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb55in
block in require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb44in
each'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler/runtime.rb44in
require'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bundler-2.3.10/lib/bundler.rb176in
require'
`remote: ! /tmp/build_021bf342/config/application.rb7in
<main>'
`remote: ! /tmp/build_021bf342/Rakefile4in
require_relative'
`remote: ! /tmp/build_021bf342/Rakefile4in
<main>'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb39in
load'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/bootsnap-1.12.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb39in
load'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/rake_module.rb29in
load_rakefile'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb710in
raw_load_rakefile'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb104in
block in load_rakefile'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb186in
standard_exception_handling'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb103in
load_rakefile'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb82in
block in run'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb186in
standard_exception_handling'
`remote: ! /tmp/build_021bf342/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/lib/rake/application.rb80in
run'
`remote: ! /tmp/build_021bf342/bin/rake11in
<main>'
remote:  !
`remote: /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/helpers/rake_runner.rb💯in
load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefile
Error)
I can run
bundle exec rake -P
just fine on my local environment, also while setting RAILS_ENV=production. Thx!
1
w
rexml
is not part of Ruby’s stdlib anymore from v3.0. Either you’re running ruby < 3 locally, or you have
rexml
installed system-wide. Either way, the solution is adding
rexml
to the Gemfile.
please let me know if this does not solve your issue
d
@waiting_for_dev thanks so much🫡, adding
rexml
to the
Gemfile
fixed the issue.
w
happy to help!
🙏 1