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
Ali Khan
1,725 Pointsindex.jade compilation error on edit
After finishing the express-basics course, I downloaded the code of final app from github to play with it. Tweaking anything on index.jade is giving me the following error.
6| .header-content-inner 7| h1 Fitness meets data science.
8| | 9| hr 10| | 11| p
unexpected text |
at Object.Lexer.fail (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\lexer.js:887:11) at Object.Lexer.next (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\lexer.js:947:15) at Object.Lexer.lookahead (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\lexer.js:113:46) at Parser.lookahead (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:102:23) at Parser.peek (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:79:17) at Parser.tag (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:832:30) at Parser.parseTag (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:759:17) at Parser.parseExpr (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:211:21) at Parser.block (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:729:25) at Parser.tag (c:\Work\Technuf\SourceCode\panasonic\express-bsics\node_modules\jade\lib\parser.js:838:24)
Am I missing something?
Thanks, Ali
1 Answer
Ali Khan
1,725 PointsNever mind. I resolved it. The fix was I had to delete all the lines which just had the '|' (pipe) and no text. I believe adding a couple of spaces after the '|' (pipe) would also do.