2017-11-04 34 views
0
에서 실행

I퍼그 메타 형식 오류 : 정의되지 않은의 '('속성을 읽을 수 없습니다가 - Heroku가

"흙"을 사용 에게 Heroku에 배포 할 때이 간단한 퍼그 코드에 매우 호기심이 문제가 "2.0.0-. rc.4 " 노드 8.1.4, 로컬 NPM 5.0.3

내가 몇 가지 테스트를 실행

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"

희망을 이 다른 바보 같은 악몽에 들어가는 데 도움이