Why is the Stylus not identifying classes? [closed]

6

I have a problem with the Stylus. Compiling my code by Node sometimes gives a bug , it does not seem to identify the classes because of . generating the following error:

  

expected "indent", got "outdent"

Note: There are hours that work and there are hours that do not.

header h1
    font-weight: 500
    margin-bottom: -1em

input, label
    column(12)

input, select
    margin: 0.5em auto 1em auto
    height: 1.8em
    border: solid #ccc 0.1em

button
    margin: 1em
    background-color: ##205FBE
    color: white

.txt-center
    text-align: center
    
asked by anonymous 03.12.2015 / 14:03

1 answer

3

What was making it return the error is that there was a space in the middle of the tabs.

As I use sublime text, I used the @Rubens Barbosa hint, accessed the command palette (ctrl + shift + p):

  

"Indentation: Convert to Spaces"

And then I converted to tabs again.

  

"Indentation: Convert to Tabs"

Now I will be policing to always use the tab. From what I've noticed, in other tests I've done, Stylus is very sensitive to code errors. Not always where it points is where the problem is, it's worth giving a review in the code.

Thanks for the personal help

    
03.12.2015 / 15:56