Hi all, I’m new to Solidus and trying to install `...
# support
s
Hi all, I’m new to Solidus and trying to install
solidus_social
. I’m getting stuck at this step:
Copy code
bundle exec rails g solidus_social:install
With this error message:
Copy code
/Users/steve/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/solidus_social-1.5.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in `<module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController (NameError)

      ::Spree::UserRegistrationsController.prepend self
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean?  UserSessionsController
               UserConfirmationsController
	from /Users/steve/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/solidus_social-1.5.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:5:in `<module:Spree>'
Any ideas how I can fix this? Gemfile attached in the thread
Gemfile and Gemfile.lock:
j
If you open up a rails console (in a working state) does that constant exist?
s
Attempting to open the console gives me the same error:
Copy code
ganesh:solidus steve$ ./bin/rails console
/Users/steve/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/solidus_social-1.5.0/app/decorators/controllers/solidus_social/spree/user_registrations_controller_decorator.rb:24:in `<module:UserRegistrationsControllerDecorator>': uninitialized constant Spree::UserRegistrationsController (NameError)

      ::Spree::UserRegistrationsController.prepend self
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Did you mean?  UserSessionsController
               UserConfirmationsController
a
it's your real gemfile or did you copied several times here? a lot of duplication
s
Not sure how that happened, I’m working off a clean install of Solidus. Anyway, I cleaned out the duplicate lines my Gemfile, nuked and reinstalled my gems, and still no luck. The only way to get rails to run without that error is to comment out
solidus_social
which is of course not ideal if the goal is to test out solidus_social 🙂
a
I will try install social now
yes, same error on: bundle exec rails g solidus_social:install
I think this gem doesn't support new solidus_starter_frontend yet. I've made new solidus app with solidus_frontend (older one) and social installed successfully
s
That must be it. I was able to get it working by using solidus_frontend instead. Thanks for pointing me in the right direction.
👍 1