For other visitors, this error also (presumably) occurs when the jade API is used incorrectly.
for documents
var fn = jade.compile('string of jade', options);
however, if you accidentally interpret this as
var fn = jade.compile('/path/to/file.jade', options);
you will have a problem. :)
source share