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

Syntax error: Invalid CSS after "@include ": expected identifier, was ""reset";" #334

Closed
pib opened this issue Jan 7, 2011 · 4 comments
Closed

Comments

@pib
Copy link

pib commented Jan 7, 2011

Syntax error: Invalid CSS after "@include ": expected identifier, was ""reset";"
        on line 1 of media/css/base.scss
  Use --trace for backtrace.

Run with --trace, it also adds this:
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:821:in expected' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:796:inexpected'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:792:in tok!' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:140:ininclude_directive'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:129:in send' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:129:inspecial_directive'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:108:in directive' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:339:inblock_child'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:330:in block_contents' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:57:instylesheet'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/scss/parser.rb:26:in parse' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/engine.rb:283:in_to_tree'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/engine.rb:262:in _render' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/sass/engine.rb:233:inrender'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/haml/exec.rb:294:in process_result' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/haml/exec.rb:41:inparse'
from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/../lib/haml/exec.rb:21:in parse!' from /home/pib/.gem/ruby/1.8/gems/haml-edge-3.1.79/bin/sass:8 from /home/pib/.gem/ruby/1.8/bin/sass:19:inload'
from /home/pib/.gem/ruby/1.8/bin/sass:19

I get this error when running

~/.gem/ruby/1.8/bin/sass --scss media/css/base.scss:base.css

Currently, base.scss just includes one line:

@include "reset";

I've tried the version I get from running "gem install haml" as well as "gem install haml-edge", with the same result.

@pib
Copy link
Author

pib commented Jan 7, 2011

D'oh, I was using @include instead of @import...

@foxx
Copy link

foxx commented Jan 29, 2014

Lol same thing just happened to me, ty for reporting back @pib, saved me a lot of trouble!

@caumons
Copy link

caumons commented Feb 5, 2015

👍

@alekseypetrenko
Copy link

same error ))) thx @pib

This issue was closed.
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