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
Deprecation warning in sprockets 3.7.0 #201
Comments
Same warning in |
Oh god...one more... |
It's fixed in sass-rails, and according to rails/sass-rails#381 (comment) it sounds like the sprockets documentation has been improved also, which should make this easier to fix here. |
nice commentaries. HOW do I update this or fix it? Could I get a "how to" answer? When I was first building this application, it worked. I am sure I broke something trying to keep up with the tutorial...It is all good, he just goes fast. I am using rails 4.2.6. and Ruby 2.2.3p173 |
I've fixed this in #202. It will still issue deprecation warning, but will work in sprockets 2, 3, 4. And I've found that guide to be not totally correct, but now it's fixed. |
Check the recent verison and ensure it fixes your issue. |
Which version? The combination of
|
@flood4life can you take a look? Is it because you left the old implementation for 3.x? |
@bogdan yep, exactly because of it, since you asked to not change anything for sprockets 2-3. Initial version (with single class) does not produce the warning. I think it's possible to explicitly suppress the warning, but not sure how. |
"Initial version" which one do you mean? Also, does it produce a warning for all 3.x versions or only for 3.7? |
The one before you asked to add the case statement. Not sure about versions (on mobile now), but here's the commit that adds deprecation rails/sprockets@924c920 |
I can confirm that the deprecation warning does not show up in 3.6.4, but does show up in 3.7.0. I would love to get that warning out of my logs. |
We should change the condition to use newly developed preprocessor from #202 from |
Awesome. Thanks! I'll watch this issue here to see when I should update. |
Released 1.2.9. Please check |
Thanks Bogdan and Murad, with js-routes 1.2.9 I am no longer seeing this issue. 👌 |
sprockets 3.7.0, js-routes 1.2.7, rails 5.0.0
Looks like the Extending Sprockets guide is pretty thorough. I don't really understand any of it, but it looks pretty thorough :)
The text was updated successfully, but these errors were encountered: