0
Peu importe si j'utilise gulp carlin ou juste carlin, je reçois cette erreur:PUG: SyntaxError: jeton inattendu (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)
Parce que quelque chose ne va pas dans ce fichier, même si elle ressemble comme tous les autres fichiers dans mon projet (et il y a beaucoup d'entre eux):
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
l'erreur apparaît que lorsque je rentre dans la ligne avec .top-mask
. Avant que tout fonctionne bien.
bien, je vous remercie. Mais ce n'est pas le problème ici – ankaankina
@ankaankina Lorsque vous affectez des variables, vous devez avoir un single = not ==. –