1. I already saw similar questions, but didn't und...
# support
a
1. I already saw similar questions, but didn't understand what the problem is.. • Billing address state can't be blank • Shipping address state can't be blank when trying to fill the address form, doesn't matter which country 2. checkbox "Use Billing Address" not working? doesn't matter if it's ticked or not it insist to fill out shipping address
n
if the checkbox isn't working check if the JS is broken on the page
a
first error leads to this:
n
might be that you aren't importing the gem's JS files properly
a
yeah, something with JS, X-button to remove item from the cart not working either
but I have fresh rails app with Solidus on top of that, hm..
it works in production though where I published solidus with Dokku, bot not locally
n
where are you importing the JS?
a
I didn't do anything special to import JS, apparently I needed to? maybe I need to add something to importmaps?
I'll try to create new app and skip JS completely, as guide suggests
well, I created app without JS. Checkbox and states in address form work, it's strange though, should work either way, I'll try without skipping JS once again later.
So, I found that after I run this command:
Copy code
bundle exec rails g solidus_paypal_braintree:install
it breaks JS locally
👀 1
doesn't matter if Rails app with or without JS initially, everything works fine until I install braintree gem
to solve those errors in the console it's necessary to remove line:
//= require spree/frontend/solidus_paypal_braintree
from vendor/assets/javascripts/spree/frontend/*all.js* file, I've created bug report.
🙌 1
w
Thanks for your investigation, @Alexander V. We’re currently revamping solidus_paypal_braintree so that will be helpful
👍 1