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

JS breaks after gem installation #335

Open
czepesch opened this issue Nov 29, 2022 · 0 comments
Open

JS breaks after gem installation #335

czepesch opened this issue Nov 29, 2022 · 0 comments
Labels

Comments

@czepesch
Copy link

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 czepesch added the bug label Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant