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::CheckoutController (NameError) #103

Open
uaru opened this issue Oct 12, 2022 · 1 comment
Open

uninitialized constant Spree::CheckoutController (NameError) #103

uaru opened this issue Oct 12, 2022 · 1 comment

Comments

@uaru
Copy link

uaru commented Oct 12, 2022

Fresh Spree project.

Added tp Gemfile

gem 'spree_mollie_gateway'

then run

bundle exec rails g spree_mollie_gateway:install

The result is below:

/Users/uaru/.rvm/gems/ruby-3.0.3/gems/spree_mollie_gateway-4.0.1/app/controllers/spree/checkout_controller_decorator.rb:38:in `<module:Spree>': uninitialized constant Spree::CheckoutController (NameError)
Did you mean?  Spree::CheckoutControllerDecorator
        from /Users/uaru/.rvm/gems/ruby-3.0.3/gems/spree_mollie_gateway-4.0.1/app/controllers/spree/checkout_controller_decorator.rb:1:in `<main>'
        from /Users/uaru/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/uaru/.rvm/gems/ruby-3.0.3/gems/bootsnap-1.10.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
        from /Users/uaru/.rvm/gems/ruby-3.0.3/gems/zeitwerk-2.5.3/lib/zeitwerk/kernel.rb:27:in `require'
        from /Users/uaru/.rvm/gems/ruby-3.0.3/gems/spree_mollie_gateway-4.0.1/app/controllers/spree/checkout_controller_decorator.rb:23:in `<module:Spree>'

It look similar to the previous issue #83, but this time it is not decorator..

@GillesB1
Copy link

GillesB1 commented May 4, 2024

Encountering the same issue, also with the 'spree_mollie_gateway' gem in a (relatively fresh) Spree project, but with Spree::Api::V1::ShipmentsController.

NameError: uninitialized constant Spree::Api::V1::ShipmentsController (NameError)

Spree::Api::V1::ShipmentsController.prepend(Spree::Api::V1::ShipmentsControllerDecorator)
              ^^^^^^^^^^^^^^^^^^^^^
Did you mean?  Spree::ShipmentDecorator

Any thoughts on the matter would be greatly appreciated.

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

2 participants