Solucionado (ver solução)
Solucionado
(ver solução)
4
respostas

Erro no Sass

Estou com esse erro no Sass:

/*
Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.
        on line 39 of estilos.css

34: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/bin/sass:13:in `<top (required)>'
35: C:/Ruby23-x64/bin/sass:22:in `load'
36: C:/Ruby23-x64/bin/sass:22:in `<main>'
37: *\/
38: body:before {
39:   white-space: pre;
40:   font-family: monospace;
41:   content: "Error: Invalid CSS after \"...los.css.map *\/\"\": expected \"{\", was \"; }\"\A         on line 42 of estilos.scss\A \A 37: C:/Ruby23-x64/bin/sass:22:in `<main>'\A 38: *\/\A 39: body:before {\A 40:   white-space: pre;\A 41:   font-family: monospace;\A 42:   content: \"Error: Inconsistent indentation: 2 spaces were used for indentation, but the rest of the document was indented using 8 spaces.\A         on line 57 of estilos.css\A \A 52: C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/bin/sass:13:in `<top (required)>'\A 53: C:/Ruby23-x64/bin/sass:22:in `load'\A 54: C:/Ruby23-x64/bin/sass:22:in `<main>'\A 55: *\/\A 56: body:before {\A 57:   white-space: pre;\A 58:   font-family: monospace;\A 59:   content: \\"Error: Invalid CSS after \\\"sans-serif\\\": expected expression (e.g. 1px, bold), was \\\";\\\"\A         on line 8 of estilos.css\A \A 3:  * 1. Set default font family to sans-serif.\A 4:  * 2. Prevent iOS text size adjust after orientation change, without disabling\A 5:  *    user zoom.\A 6:  *\/\A 7: html {\A 8:   font-family: sans-serif;\A 9:   /* 1 *\/\A 10:   -ms-text-size-adjust: 100%;\A 11:   /* 2 *\/\A 12:   -webkit-text-size-adjust: 100%;\A 13:   /* 2 *\/ }\\"; }\A 60: \A 61: /*# sourceMappingURL=estilos.css.map *\/\"; }"; }

Backtrace:
estilos.css:39
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:486:in `block in tabulate'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:444:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:444:in `each_with_index'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:444:in `tabulate'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:409:in `_to_tree'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:381:in `_render_with_sourcemap'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/engine.rb:298:in `render_with_sourcemap'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:492:in `update_stylesheet'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:209:in `each'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:473:in `on_file_changed'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/lib/sass/plugin/compiler.rb:331:in `block in watch'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/vendor/listen/lib/listen/listener.rb:252:in `on_change'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/vendor/listen/lib/listen/listener.rb:290:in `block in initialize_adapter'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/vendor/listen/lib/listen/adapters/polling.rb:48:in `poll_changed_directories'
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/sass-3.4.23/vendor/listen/lib/listen/adapter.rb:299:in `block in start_poller'
*/

Esse erro aparece em estilos.css e em estilos.scss, me impedindo de fazer qualquer alteração. Como solucionar isso?

4 respostas

Renata o erro parece estar na linha 42 do arquivo estilos.scss, se possível poste o conteúdo dele para eu dar uma olhada e tentar lhe ajudar.

Matheus, ai é q está o problema, eu não consigo ver mais o meu código porque tanto no .css e no .scss aparece esse erro

Qual foi o ultimo comando que você rodou para compilar o sass ?

solução!

Matheus, eu estava voltando pra fazer a aula 5 lancei o comando: sass --watch estilos.css:estilos.scss.

Desculpe a demora em responder, não estou recebendo notificação de publicação no tópico.

Atualizando: Não encontrei uma solução, resolvi recomeçar o curso do zero.