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

spree/backend.js being required in spree_i18n.js #716

Open
fabiode opened this issue Mar 13, 2017 · 0 comments
Open

spree/backend.js being required in spree_i18n.js #716

fabiode opened this issue Mar 13, 2017 · 0 comments

Comments

@fabiode
Copy link

fabiode commented Mar 13, 2017

Hello!

Is there a reason for spree/backend.js being required in spree_i18n.js file? This causes some conflicting behaviors when you want to require the backend.js file in a custom project. If you try to require in your project's vendor/javascripts/spree/backend/all.js, Sprockets raises Sprockets::CircularDependencyError.

But if you remove the //= require spree/backend from your vendor/javascripts/spree/backend/all.js file, it does not raises the error, but the content of spree/backend is not required into all.js, and even if it was required correctly, it's kind of strange making spree_i18n, an external gem, being responsible for requiring it.

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