2017-11-04 24 views
0
上で実行されている

IパグメタTypeError例外:未定義の「(」プロパティを読み取ることができませんが - Herokuの

「パグ」を使用してHerokuの上で展開したとき、この単純なパグコードに非常に好奇心の問題を持ちます:「2.0.0-。 rc.4" ノード8.1.4、5.0.3 NPM

がローカルで正常に動作します。

doctype html 
    html 
    head 
     title= "hello" 
     meta(charset="UTF-8") 
    body 

     h1 hello 

私はいくつかのテストを実行し、問題がメタタグである。 私はちょうどそれが走るラインをカットした場合。

ご存知ですか?

エラー・スタックは

TypeError: Cannot read property '(' of undefined 
    at Lexer.bracketExpression (/app/node_modules/pug-lexer/index.js:212:40) 
    at Lexer.attrs (/app/node_modules/pug-lexer/index.js:1011:24) 
    at Lexer.callLexerFunction (/app/node_modules/pug-lexer/index.js:1319:23) 
    at Lexer.advance (/app/node_modules/pug-lexer/index.js:1356:15) 
    at Lexer.callLexerFunction (/app/node_modules/pug-lexer/index.js:1319:23) 
    at Lexer.getTokens (/app/node_modules/pug-lexer/index.js:1375:12) 
    at lex (/app/node_modules/pug-lexer/index.js:12:42) 
    at Object.lex (/app/node_modules/pug/lib/index.js:99:27) 
    at Function.loadString [as string] (/app/node_modules/pug-load/index.js:44:24) 
    at compileBody (/app/node_modules/pug/lib/index.js:86:18) 
+0

間隔を確認してください – Avraham

答えて

1

HTML後のインデントの位置異なるようです。

doctype html 
html 
    head 
    title= "hello" 
    meta(charset="UTF-8") 
    body 

    h1 hello 
0

これに6時間を失った後、私は一緒にパグとノードの異なるバージョンをテストしました。

このセットアップすべてがあまりにもHerokuの上で、再び働い付:

"パグ": "2.0.0-rc.1"、 "ノード": "8.1.4"

希望をこれは他人がこの愚かな悪夢に入るのを助けます

関連する問題