solidus_paypal_braintree icon indicating copy to clipboard operation
solidus_paypal_braintree copied to clipboard

JS breaks after gem installation

Open czepesch opened this issue 2 years ago • 0 comments

JS breaks after gem installation. Remove item button (X) and checkbox 'Use billing address' not working. In console:

solidus_starter_frontend-bf8b6323022eecfcb822f501b0cf8861f185039dde4a6d71fe7e72e733e2de8e.js:752 
        
       Uncaught ReferenceError: Spree is not defined
    at solidus_starter_frontend-bf8b6323022eecfcb822f501b0cf8861f185039dde4a6d71fe7e72e733e2de8e.js:752:21
(anonymous) @ solidus_starter_frontend-bf8b6323022eecfcb822f501b0cf8861f185039dde4a6d71fe7e72e733e2de8e.js:752
edit:53 
        
       Uncaught ReferenceError: Solidus is not defined
    at edit:53:5

Solidus Version: 3.2.4

To Reproduce Install gem, add item to the cart, see errors in the console

Desktop:

Fix from file /vendor/assets/javascripts/spree/frontend/all.js remove line: //= require spree/frontend/solidus_paypal_braintree Seems like this line is unnecessary since there is: //= require_tree . already

czepesch avatar Nov 29 '22 19:11 czepesch