Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

solidus-frontend dependency still exists #294

Closed
Rtwena opened this issue Jun 17, 2021 · 0 comments · Fixed by #296
Closed

solidus-frontend dependency still exists #294

Rtwena opened this issue Jun 17, 2021 · 0 comments · Fixed by #296

Comments

@Rtwena
Copy link
Contributor

Rtwena commented Jun 17, 2021

I'm getting errors because some of the files are trying to decorate solidus-frontend code, even though solidus-frontend is not a dependency for this gem

https://github.com/solidusio/solidus_paypal_braintree/blob/master/app/decorators/controllers/solidus_paypal_braintree/checkout_controller_decorator.rb#L9
https://github.com/solidusio/solidus_paypal_braintree/blob/master/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb#L9

Could there be checks to not run this code if the solidus-frontend is not available?

uninitialized constant Spree::OrdersController excluded from capture: DSN not set
rails aborted!
NameError: uninitialized constant Spree::OrdersController
/usr/share/rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `block in load_missing_constant'
/usr/share/rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:8:in `without_bootsnap_cache'
/usr/share/rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:74:in `rescue in load_missing_constant'
/usr/share/rvm/gems/ruby-2.5.3/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/active_support.rb:56:in `load_missing_constant'
/home/richard/workspace/maisonette-backend/vendor/cache/solidus_paypal_braintree-ca2fb042538d/app/decorators/controllers/solidus_paypal_braintree/orders_controller_decorator.rb:9:in `<module:OrdersControllerDecorator>'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant