Skip to content Skip to sidebar Skip to footer

Node/express - Missing ) After Argument List

new to node... const express = require('express'); const bodyParser= require('body-parser'); const MongoClient = require('mongodb').MongoClient; const app = express(); app.use(b

Solution 1:

You have an unnecessary parenthesis in

app.post((baseURL + '/people', ...);

Replace that with

app.post(baseURL + '/people', ...);

or enclose the first parameter with a closing parenthesis.

app.post((baseURL + '/people'), ...);

Post a Comment for "Node/express - Missing ) After Argument List"