Closed HosMercury closed 2 years ago
I have this err Error: Failed to lookup view "/admin/dashboard" in views directory "/Users/h/work/kora/views"
`var hbs = require('express-hbs'); require('./src/views/helpers/hbs_date_helper')(hbs); app.engine( 'hbs', hbs.express4({ partialsDir: __dirname + '/src/views/partials' }) ); app.set('view engine', 'hbs'); app.set('views', __dirname + '/src/views'); app.use(express.static(__dirname + '/src/public'));`
knowing that the views directory is in the src dir ...and it refuses to look inside src
I have this err Error: Failed to lookup view "/admin/dashboard" in views directory "/Users/h/work/kora/views"
knowing that the views directory is in the src dir ...and it refuses to look inside src