solidusio / solidus_paypal_braintree

⛔️ [Archived] Use solidus_braintree instead!
https://github.com/solidusio/solidus_braintree
BSD 3-Clause "New" or "Revised" License
37 stars 78 forks source link

JS breaks after gem installation #335

Open czepesch opened 1 year ago

czepesch commented 1 year ago

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