Thursday, 8 June 2017

Handlebar error with passport-steam

Having an error when I try to show avatar os the steam at my site:

Error:

C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\utils.js:18 callback(reason); ^

TypeError: callback is not a function at Immediate. (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\utils.js:18:13) at runCallback (timers.js:672:20) at tryOnImmediate (timers.js:645:5) at processImmediate [as _immediateCallback] (timers.js:617:5)

Code routes:

router.get('/', function(req, res) {
  res.render('index', { user: req.user }, { title: 'Express' });
});

router.get('/tos', function(req, res) {
  res.render('tos', { user: req.user }, { title: 'Terms of Service' });
});
Html
<-img src='' alt="Avatar Image" />
<-span><-/span>



via Vlad LifeStyle

No comments:

Post a Comment