Pub templates error

technical talkiess
0

 Inconsistent indentation. Expecting either 4 or 8 spaces/tabs.

    at makeError (C:\xampp\htdocs\dance\node_modules\pug-error\index.js:34:13)

    at Lexer.error (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:62:15)

    at Lexer.indent (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:1515:18)

    at Lexer.callLexerFunction (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:1647:23)

    at Lexer.advance (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:1688:12)

    at Lexer.callLexerFunction (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:1647:23)

    at Lexer.getTokens (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:1706:12)

    at lex (C:\xampp\htdocs\dance\node_modules\pug-lexer\index.js:12:42)

    at Object.lex (C:\xampp\htdocs\dance\node_modules\pug\lib\index.js:104:9)

    at Function.loadString [as string] (C:\xampp\htdocs\dance\node_modules\pug-load\index.js:53:24)



solution :- 


Manage you line and code like below:-


doctype html
html
  head
    style
      include ../static/style.css
  body
    nav#navbar.nav.top.topnavbar
        ul
            li Home
            li About
            li Services
            li Contact Us

script
      include ../static/index.js

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)