hapiapp
hapiapp copied to clipboard
Hapi new version
Basically I am trying to follow along your tutorial video and a lot has changed. I am currently stuck at the mongoose part https://github.com/mr-fool/hapiJS/blob/master/app.js#L48 I got this whenever I try to refresh http://localhost:8000/tasks
[nodemon] restarting due to changes... [nodemon] starting
node app.js
Server running at: http://localhost:8000 MongoDB connected... Debug: internal, implementation, error Error: handler method did not return a value, a promise, or throw an error at module.exports.internals.Manager.execute (/Users/hetzer/Documents/hapiapp/node_modules/hapi/lib/toolkit.js:52:29) at process._tickCallback (internal/process/next_tick.js:68:7) [ { _id: 5c3bef38f9849c0434facda1, text: 'My Task One' } ]
Help plz
we have same error please help