Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No default engine was specified and no extension was provided (expressJS & jade)

This is my (simplified) app.coffee:

app.set('views', __dirname + '/app/views')
app.set('view enigne', 'jade')

app.listen 8000

However, when I visit my app in the browser I get the following error message:

Error: No default engine was specified and no extension was provided

Edit: Turns out I'm an idiot and spelled "engine" incorrectly. Thanks to @lascort for pointing it out!

like image 252
nicohvi Avatar asked Mar 13 '14 14:03

nicohvi


1 Answers

You have a typo:

app.set('view >>enigne<<', 'jade')
like image 187
martskins Avatar answered Oct 15 '22 01:10

martskins