-
Notifications
You must be signed in to change notification settings - Fork 13
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
crash on node 0.12 #36
Comments
solution:
line 232:
|
While this is in a current rewrite, I think I'll write a patch for the current version to fix this now. |
This has nothing to do with the node version I think. I think the middleware can't find your compass project files. Right now it just assumes they're there. I'll work on fixing that. |
Try now. This is fixed in |
I did console.log(files) and it contained an array ['style.scss', 'style.css'] instead of the files object that version 0.2.3 expected. I haven't changed any configuration about fs.readDir and as documented here http://nodejs.org/api/fs.html#fs_fs_readdir_path_callback, fs.readDir returns an array of filenames on v0.12.0. Thank you for fixing it, though :) |
using node-compass 0.2.3
On index.js@line 233 there is a loop over the properties of a files object.
However, on node 0.12 this files object is just an array - you can do a forEach here.
The code expecting an object crashes here:
The text was updated successfully, but these errors were encountered: