I'm using with ruby 3.0.3 and rails 7
bundle exec rails g spree_related_products:install
/Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/bundler/gems/spree_related_products-3456b108b630/lib/spree_related_products/engine.rb:10:in block in <class:Engine>': uninitialized constant Spree::Calculator (NameError) from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:32:ininstance_exec'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:32:in run' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:61:inblock in run_initializers'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:228:in block in tsort_each' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:350:inblock (2 levels) in each_strongly_connected_component'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:422:in block (2 levels) in each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:431:ineach_strongly_connected_component_from'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:421:in block in each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:50:ineach'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:50:in tsort_each_child' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:415:incall'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:415:in each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:349:inblock in each_strongly_connected_component'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:in each' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:incall'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:in each_strongly_connected_component' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:226:intsort_each'
from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:205:in tsort_each' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:60:inrun_initializers'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/application.rb:372:in initialize!' from /Users/muneebsarfraz/Projects/vendorhost/config/environment.rb:5:in'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:inrequire'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:inrequire'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/application.rb:348:in require_environment!' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/actions.rb:28:inrequire_environment!'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/actions.rb:15:in require_application_and_environment!' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/commands/generate/generate_command.rb:21:inperform'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor/command.rb:27:in run' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor/invocation.rb:127:ininvoke_command'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor.rb:392:in dispatch' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/base.rb:87:inperform'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command.rb:48:in invoke' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/commands.rb:18:in'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:inrequire'
from bin/rails:4:in `'
I'm using with ruby 3.0.3 and rails 7 bundle exec rails g spree_related_products:install /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/bundler/gems/spree_related_products-3456b108b630/lib/spree_related_products/engine.rb:10:in'
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in '
from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in '
block in <class:Engine>': uninitialized constant Spree::Calculator (NameError) from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:32:in
instance_exec' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:32:inrun' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:61:in
block in run_initializers' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:228:inblock in tsort_each' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:422:inblock (2 levels) in each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:431:in
each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:421:inblock in each_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:50:in
each' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:50:intsort_each_child' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:415:in
call' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:415:ineach_strongly_connected_component_from' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:349:in
block in each_strongly_connected_component' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:ineach' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:in
call' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:347:ineach_strongly_connected_component' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:226:in
tsort_each' from /Users/muneebsarfraz/.rvm/rubies/ruby-3.0.3/lib/ruby/3.0.0/tsort.rb:205:intsort_each' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/initializable.rb:60:in
run_initializers' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/application.rb:372:ininitialize!' from /Users/muneebsarfraz/Projects/vendorhost/config/environment.rb:5:in
require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/zeitwerk-2.6.6/lib/zeitwerk/kernel.rb:38:in
require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/application.rb:348:inrequire_environment!' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/actions.rb:28:in
require_environment!' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/actions.rb:15:inrequire_application_and_environment!' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/commands/generate/generate_command.rb:21:in
perform' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor/command.rb:27:inrun' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor/invocation.rb:127:in
invoke_command' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/thor-1.2.1/lib/thor.rb:392:indispatch' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command/base.rb:87:in
perform' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/command.rb:48:ininvoke' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/railties-7.0.4/lib/rails/commands.rb:18:in
require' from /Users/muneebsarfraz/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.13.0/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in
require' from bin/rails:4:in `