Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
munib-rehman opened this issue Jan 14, 2023 · 0 comments

Comments

@munib-rehman
Copy link

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:in instance_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:in block 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: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: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:in each_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:in each'
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:in call'
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:in block 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:in call'
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:in tsort_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:in run_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:in require'
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:in require'
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:in require_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:in perform'
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:in invoke_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:in perform'
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:in require'
from bin/rails:4:in `'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant