Friday 9 June 2017

handlebars error with passport-steam

Giving me an errors and I cant display the avatar and steam name

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

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

Error

Error: Parse error on line 36: ... <img src='' a -----------------------^ Expecting 'ID', got 'INVALID' at Parser.parseError (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\parser.js:267:1 9) at Parser.parse (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\parser.js:336:30) at HandlebarsEnvironment.parse (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\base. js:46:43) at compileInput (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:514:19) at ret (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\handlebars\dist\cjs\handlebars\compiler\compiler.js:523:18) at ExpressHandlebars._renderTemplate (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\express-handleba rs.js:247:12) at ExpressHandlebars.<anonymous> (C:\Users\VladG\Desktop\Tutorials\Express Web\CSGOGamble\node_modules\express-handlebars\lib\express-handlebars.j s:173:21)



via Vlad LifeStyle

No comments:

Post a Comment