Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asset compilation crashes on 2.5.0 #196

Closed
brchristian opened this issue Oct 12, 2020 · 1 comment
Closed

Asset compilation crashes on 2.5.0 #196

brchristian opened this issue Oct 12, 2020 · 1 comment

Comments

@brchristian
Copy link
Contributor

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
Copy link
Contributor Author

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 01a7db5 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant