-
Notifications
You must be signed in to change notification settings - Fork 47
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
undefined method `bytesize' for nil:NilClass #12
Comments
Afaik this means that the stylesheet is empty when it's processed by Sprockets. This could either mean that Let me know if that helps you to resolve the issue. Otherwise it would be good to have simple app that reproduces the problem. |
@jhilden If I add some content to This works: /*
* = require ...
*
*/
.foo { } This fails: /*
* = require ...
*
*/ Also, If I add something to |
I was able to reproduce the bug here: 52ff7f9 I guess it's an issue with Sprocket's |
I'm having this same issue using @import "flatty/flatty";
@import "flatty/mdocs-theme";
@import "custom";
@import "pt/tags";
@import "jQuery-File-Upload/jquery.fileupload-ui.css"; |
I also get |
line 13 of |
Also experiencing this issue. Resolved by adding an empty class to the bottom of application.css as advised by @linjunpop; however, a better fix would be much appreciated if anyone knows of one. Edit: Now it compiles ok but results in issue #21. |
@linjunpop @jamesburke-examtime @cj can you please test if you still have issues with the current master? |
closing this due to inactivity. reopen if issue persists. |
In my app.
I got
undefined method 'bytesize' for nil:NilClass
when I start the app, same error while I try to compile assets.Which happens in https://github.com/sstephenson/sprockets/blob/v2.2.2/lib/sprockets/processed_asset.rb#L12
The
@source
isnil
. Whilepathname
is"#<Pathname:/Users/linjunpop/Code/Pracstrat/fo-web/app/assets/stylesheets/application_split2.css.split2>"
The text was updated successfully, but these errors were encountered: