Skip to content

uninitialized constant Spree::Tracker (NameError) #16

Description

@vinaymehta

Hello, I'm trying the multi-store function. I followed the steps in the installation instruction, but I got an error when running the generation: bundle exec rails g spree_multi_domain:install

ruby: 2.4.1p111
rails: 5.2.3
spree: 3.7.2

the error:

/Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in block in load_missing_constant': uninitialized constant Spree::Tracker (NameError) from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in without_bootsnap_cache'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:79:in rescue in load_missing_constant' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/active_support.rb:59:in load_missing_constant'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/app/models/spree/tracker_decorator.rb:1:in <main>' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in load'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in load' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:10:in block (2 levels) in activate'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:9:in glob' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:9:in block in activate'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:8:in each' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:8:in activate'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:426:in instance_exec' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:426:in block in make_lambda'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:606:in block (2 levels) in default_terminator'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605:in catch' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605:in block in default_terminator'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:199:in block in halting' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in block in invoke_before'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in each' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in invoke_before'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:131:in run_callbacks' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/activesupport-5.2.3/lib/active_support/reloader.rb:89:in prepare!'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/application/finisher.rb:63:in block in <module:Finisher>' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/initializable.rb:32:in instance_exec'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/initializable.rb:32:in run' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/initializable.rb:61:in block in run_initializers'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:228:in block in tsort_each' from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:350:in block (2 levels) in each_strongly_connected_component'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:431:in each_strongly_connected_component_from' from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:349:in block in each_strongly_connected_component'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in each' from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in call'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:347:in each_strongly_connected_component' from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:226:in tsort_each'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/2.4.0/tsort.rb:205:in tsort_each' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/initializable.rb:60:in run_initializers'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/railties-5.2.3/lib/rails/application.rb:361:in initialize!' from /Users/vinaymehta/projects/khushbu_projects/sellist_app/spree_test2/config/environment.rb:5:in

'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in require' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in block in require_with_bootsnap_lfi'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in register' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in require_with_bootsnap_lfi'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/bootsnap-1.4.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in require' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application.rb:102:in preload' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application.rb:153:in serve'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application.rb:141:in block in run' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application.rb:135:in loop'
from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application.rb:135:in run' from /Users/vinaymehta/.rvm/gems/ruby-2.4.1/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in <top (required)>'
from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/vinaymehta/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in require'
from -e:1:in `'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions