Closed
Description
New Issue Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
- I can reproduce the issue with the latest versions of Parse Server and the Parse JS SDK.
Issue Description
When running a Parse.Query with .first()
, I get an error like TypeError: Cannot read properties of undefined (reading 'className') at eval (ParseQuery.js:1523:39)
Parse.Query with .find works fine.
This seem to have broke in v3.5.0. Earlier versions work fine for me.
After digging into the source code a bit it looks like this
in ParseQuery.js gets modified to undefined
after QueryController has ran the async query request.
Steps to reproduce
Run a query like
const result = await new Parse.Query('Item').equalTo('objectId', '1234567890').first()
console.log({ result })
Actual Outcome
A runtime error is thrown (see Logs section)
Expected Outcome
Expected result
would be an Parse.Object with the specified objectId or undefined
Environment
Client
- Parse JS SDK version:
3.5.0
Logs
Complete error:
TypeError: Cannot read properties of undefined (reading 'className')
at eval (ParseQuery.js:1523:39)