Open iyanghualin opened 5 years ago
It seems not the problem of b bootsnap. I created a new project with the parameter --skip-bootsnap, The same error uninitialized constant Spree::Tracker (NameError)
occurs again when I run the generator bundle exec rails g spree_multi_domain:install
/home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/app/models/spree/tracker_decorator.rb:1:in `<top (required)>': uninitialized constant Spree::Tracker (NameError)
from /home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:10:in `block (2 levels) in activate'
from /home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:9:in `glob'
from /home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:9:in `block in activate'
from /home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:8:in `each'
from /home/harry/.gem/ruby/2.5.5/bundler/gems/spree-multi-domain-efdfcf68df3e/lib/spree_multi_domain/engine.rb:8:in `activate'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:426:in `instance_exec'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:426:in `block in make_lambda'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:198:in `block (2 levels) in halting'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:606:in `block (2 levels) in default_terminator'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605:in `catch'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:605:in `block in default_terminator'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:199:in `block in halting'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in `block in invoke_before'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in `each'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:513:in `invoke_before'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:131:in `run_callbacks'
from /home/harry/.gem/ruby/2.5.5/gems/activesupport-5.2.3/lib/active_support/reloader.rb:89:in `prepare!'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/application/finisher.rb:63:in `block in <module:Finisher>'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `instance_exec'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/initializable.rb:32:in `run'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/initializable.rb:61:in `block in run_initializers'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:347:in `each'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:347:in `call'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/initializable.rb:60:in `run_initializers'
from /home/harry/.gem/ruby/2.5.5/gems/railties-5.2.3/lib/rails/application.rb:361:in `initialize!'
from /home/harry/src/hello_spree/config/environment.rb:5:in `<top (required)>'
from /home/harry/.gem/ruby/2.5.5/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /home/harry/.gem/ruby/2.5.5/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application.rb:102:in `preload'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /home/harry/.gem/ruby/2.5.5/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /opt/rubies/ruby-2.5.5/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
Any founding here? Facing same issues
I'm facing the same issue
I found this branch tracker-fix-3-5
in the repo branches, it actually works, so replace the gem line in your Gemfile with this:
gem 'spree_multi_domain', github: 'spree-contrib/spree-multi-domain', branch: 'tracker-fix-3-5'
And then run the generator, and it will work, somebody has to review the changes in that branch and create a PR to master.
Thanks @kareemsalah227 , it worked for me
Its working for me but when i try to create a new store i've go this error msg :
ArgumentError in Spree::Admin::Stores#new
Can't resolve image into URL: undefined method `to_model' for #
Anyone got an idea ?
@kareemsalah227 Thank you
@rjaguene in your project folder create this path app/views/spree/admin/stores/_form.html.erb. You can just start from spree also and create /admin/stores/_form.html.erb. then paste this in there https://github.com/spree-contrib/spree-multi-domain/edit/master/app/views/spree/admin/stores/_form.html.erb That should do it. it is because it is missing a .url after logo
This is because Analytics and Tracking were moved to a gem in Spree v3.5.
To solve this error, just add gem 'spree_analytics_trackers'
to your Gemfile.
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.5.5 rails: 5.2.2.1(5.2.3 the same) spree: 3.7.1
the error: