0
不管,如果我用一口哈巴狗或只是哈巴狗,我得到這個錯誤:即使它看起來帕格:語法錯誤:意外的令牌(12:15)
SyntaxError: Unexpected token (12:15)
at Parser.pp$4.raise (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:2488:13)
at Parser.pp.unexpected (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:623:8)
at Parser.pp.semicolon (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:600:59)
at Parser.pp$1.parseVarStatement (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:973:8)
at Parser.pp$1.parseStatement (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:751:17)
at Parser.pp$1.parseTopLevel (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:672:23)
at Parser.parse (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:529:15)
at Object.parse (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\node_modules\acorn\dist\acorn.js:3378:37)
at reallyParse (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\index.js:22:16)
at findGlobals (C:\Users\freet\AppData\Roaming\npm\node_modules\pug\node_modules\acorn-globals\index.js:35:11)
因爲什麼是錯在這個文件就像在我的項目對其他文件(也有很多他們):
extends ../layouts/layout
block variable
- var headerType == "main";
block content
include ../helpers/mixins
.academy-page
.top-section.js-screen.on-screen
.top-container
.top-mask
.text-wrap
h3 Academy
當我進入符合.top-mask
只出現錯誤。在此之前,一切工作正常。
好的,謝謝。但這不是問題 – ankaankina
@ankaankina分配變量時,您需要有一個= not ==。 –