solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
52 stars 124 forks source link

Asset compilation crashes on 2.5.0 #196

Closed brchristian closed 3 years ago

brchristian commented 3 years ago

I just updated solidus_auth_devise to 2.5.0 and noticed that my push to Heroku failed with the following:

Sprockets::FileNotFound: couldn't find file 'spree/backend/solidus_auth' with type 'application/javascript'
Checked in these paths: 
[...]
/tmp/build_e249da96/vendor/bundle/ruby/2.6.0/gems/solidus_backend-2.10.2/app/assets/config/solidus_backend_manifest.js:3
/tmp/build_e249da96/vendor/assets/javascripts/spree/backend/all.js:11

Any idea what might be going on here?

Using: Ruby 2.6.6 Rails 5.1.7 Solidus 2.10.2 solidus_auth_devise 2.5.0

brchristian commented 3 years ago

I've been able to diagnose and resolve this, so I'm closing the issue but will document it in case others have a similar experience.

Commit https://github.com/solidusio/solidus_auth_devise/commit/01a7db5405d43f6ceac2d969d2f3dc1e7c686b46 removed some assets, as well as their requirements. However, for whatever reason we had been manually stating require spree/frontend/solidus_auth. I'm not sure if that had come from a Spree installer many years ago, or where exactly that came from. Thus our app would not precompile correctly in the latest version of solidus_auth_devise.

Of course, simply removing this line fixed the issue!