Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itsTeknas opened this issue Nov 3, 2022 · 0 comments
Open

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

itsTeknas opened this issue Nov 3, 2022 · 0 comments

Comments

@itsTeknas
Copy link

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”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant