我从Jade开始,我有这个简单的文件,我想自动重新渲染,
doctype html
html
head
title Angular App CS
link(rel='stylesheet' href='http://getbootstrap.com/dist/css/bootstrap.min.css')
script(src='http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.3/angular.min.js')
script(src='http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/js/bootstrap.min.js')
我正在使用此命令jade -w -P index.jade
,但仅在第一次呈现时,当我对.jade
进行更新时,会出现以下错误:
TypeError: path must be a string
at Object.fs.lstat (fs.js:675:11)
at renderFile (/usr/lib/node_modules/jade/bin/jade.js:172:6)
at StatWatcher.<anonymous> (/usr/lib/node_modules/jade/bin/jade.js:119:11)
at StatWatcher.emit (events.js:98:17)
at StatWatcher._handle.onchange (fs.js:1115:10)
可能会发生什么?