У меня проблема, когда я смотрю файл
и ошибка, которая появляется =>
Error: .//index.pug:2:1
1| doctype html
> 2| html
-------^
3|
4| head
5|
unexpected token "indent"
at makeError (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-error\index.js:32:13)
at Parser.error (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-parser\index.js:53:15)
at Parser.parseExpr (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-parser\index.js:264:14)
at Parser.parse (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-parser\index.js:112:25)
at parse (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-parser\index.js:12:20)
at Object.parse (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug\lib\index.js:126:22)
at Function.loadString [as string] (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug-load\index.js:45:21)
at compileBody (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug\lib\index.js:86:18)
at Object.exports.compile (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug\lib\index.js:242:16)
at handleTemplateCache (C:\Users\amb\AppData\Roaming\npm\node_modules\pug-cli\node_modules\pug\lib\index.js:215:25)
любая помощь, пожалуйста?






Скорее всего, у вас есть табуляция в конце строки 1 или процессор ожидает табуляцию в начале строки 2, а у вас есть пробелы (или наоборот)
doctype html
html
head
meta
title
body
h1 Tag
//- Remember
//- Use 2 Spaces Tab
//- Be sure to check any tabs or spaces at the end of line
//- doctype html and html - without any tabs
//- head and body - with 1 tab or 2 spaces
//- meta, title and h1- with 2 tab or 4 spaces
Пожалуйста, предоставьте вопрос. напишите что хотите в описании.