express-query-boolean icon indicating copy to clipboard operation
express-query-boolean copied to clipboard

Express 5 | TypeError: obj.hasOwnProperty is not a function

Open itsTeknas opened this issue 3 years ago • 0 comments

Started getting this error after upgrading to express 5

TypeError: obj.hasOwnProperty is not a function
    at parseObject (/Users/Sanket/Workspace/X/node_modules/express-query-boolean/lib/parse.js:60:13)
    at /Users/Sanket/Workspace/X/node_modules/express-query-boolean/index.js:5:17

Maybe it's linked to this https://expressjs.com/en/guide/migrating-5.html#req.query

req.query The req.query property is no longer a writable property and is instead a getter. The default query parser has been changed from “extended” to “simple”.

itsTeknas avatar Nov 03 '22 06:11 itsTeknas