LoginSignup
0
0

More than 5 years have passed since last update.

TiShadowの導入時に遭遇したエラー

Posted at

以下のオフィシャルのページに従ってTiShadowを導入。
http://tishadow.yydigital.com/getting%20started

tishadow startした後に動いているか確認するため http://localhost:3000 にブラウザから接続。
しかしブラウザーにはエラーが表示され、ターミナルにも以下のようなエラーが表示された。

Error: /usr/local/share/npm/lib/node_modules/tishadow/server/views/layout.jade:1
  > 1| !!!
    2| html
    3|   head
    4|     title= title

`!!!` is deprecated, you must now use `doctype`
    at Object.Lexer.doctype (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/lexer.js:246:13)
    at Object.Lexer.next (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/lexer.js:812:15)
    at Object.Lexer.lookahead (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/lexer.js:111:46)
    at Parser.lookahead (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/parser.js:109:23)
    at Parser.peek (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/parser.js:86:17)
    at Parser.parse (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/parser.js:124:26)
    at Parser.parse (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/parser.js:138:24)
    at parse (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/jade.js:95:62)
    at Object.exports.compile (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/jade.js:152:9)
    at Object.exports.render (/usr/local/share/npm/lib/node_modules/tishadow/node_modules/jade/lib/jade.js:256:15)

ブラウザ上にも似たようなエラーが表示されてそこから進めず。。。困ったな。

エラーメッセージを見ると以下のファイルの先頭にある!!!という表現が問題っぽい。
/usr/local/share/npm/lib/node_modules/tishadow/server/views/layout.jade

エラーメッセージに従って!!!をdoctypeに書き換えてみるとエラーが消え、期待していた画面がブラウザ上に表示された。とりあえずこの状態で様子を見よう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0