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

Rendering '@charset "UTF-8";' gives an error. #44

Closed
kadishmal opened this issue Sep 17, 2012 · 6 comments
Closed

Rendering '@charset "UTF-8";' gives an error. #44

kadishmal opened this issue Sep 17, 2012 · 6 comments

Comments

@kadishmal
Copy link

Originally reported at sass/node-sass#23. node-sass module uses libsass.

When I try to use it, it outputs 'undefined'

var sass = require('node-sass');

sass.render('@charset "UTF-8";', function(err, css){
    console.log(css)
});

The node-sass developer confirms that the problem originates from libsass. He says the following error is displayed when he tries to use sassc (https://github.com/hcatlin/sassc) to render @charset "UTF-8";:

ERROR -- test.scss, line 1: top-level blockless directive must be terminated by ';'
@ebersac
Copy link

ebersac commented Oct 10, 2012

Confirmed.

@akhleung
Copy link

Will work on the issue this week -- however, please be aware that for the time being, the "fix" will be to ignore the directive. As long as your SCSS files are UTF-8 they should work fine; we're still looking into how to handle different encodings.

@kadishmal
Copy link
Author

Yes, I don't actually care about encodings either. All I want is the successful build.

@djensen47
Copy link

What's the status of this bug? Thanks.

@akhleung
Copy link

Just made the fix (i.e. ignoring the directive for now)! Sorry for the delay; other issues took prioritiy.

@djensen47
Copy link

Nice, thank you! Now I just need those changes to get into node-sass. :-)

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

4 participants