Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Express Basics (2015) Doing more with Express Using Logic in Jade Templates

Michel Moreau L
Michel Moreau L
21,751 Points

Invalid indentation, you can use tabs or spaces but not both

I am doing exactly the same as in the video, but constantly get the message in the title. Any idea on why that might be happening?

2 Answers

Michel Moreau L
Michel Moreau L
21,751 Points

I just solve this. As it says, you can't use both tabs and space for indentation. You can change space for indentation in sublime with this method : http://stackoverflow.com/questions/9575739/how-to-replace-four-spaces-with-a-tab-in-sublime-text-2 . It is hard to identify without any software assisting you, so I would suggest that if you encounter this problem don't waste your time and find a method on the web that fits your text editor.

for VS code there is a pug beautify extension that helped me fix it