joshmcarthur / spree-import-products

A Spree extension to allow users to batch upload Products from a CSV file using Delayed Job
http://spreecommerce.com/extensions/103-import-products
BSD 3-Clause "New" or "Revised" License
80 stars 99 forks source link

uninitialized constant Spree::Calculator (NameError) when i do bundle exec rails g spree_related_products:install #26

Open munib-rehman opened 1 year ago

munib-rehman commented 1 year ago

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 `
'