Monday, 3 April 2017

NodeJS missing parentheses

I keep getting this error:

SyntaxError: missing ) after argument list in /Users/test/Desktop/simple_node_app/views/pages/index.ejs while compiling ejs

Here is the code:

app.get('/', function(req, res) {
ig.get('users/self/media/recent', { access_token: 'XYZ', count: 1 }).then(media => {
      res.render('pages/index', { grams: media })
}).catch(console.error)
});

nodemon runs it just fine, so I don't think it's really a missing paren, so I think it's something else, not sure what



via Captain Chaos

No comments:

Post a Comment