-
-
Notifications
You must be signed in to change notification settings - Fork 595
Parse.Query.first() not working after [email protected] #1592
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
Comments
Thanks for opening this issue!
|
Could you please fill out the issue template? It contains a section for a code example and asks other info which helps others to investigate this issue. |
Can you reproduce this issue with the latest alpha version of Parse Server 5? |
See #1593 (comment) |
I can replicate this issue.
fit('can load server', (done) => {
new Parse.Object('TestObject').save()
});
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Parse Functionality Test</title>
<script src='parse.js'></script>
</head>
<body>
<div>
Parse Login
</div>
<script>
(async function() {
Parse.initialize('integration');
Parse.serverURL = 'http://localhost:1337/parse';
const obj = await new Parse.Query('TestObject').first();
alert(obj.id)
})();
</script>
</body>
</html>
With the distributed code as of 3.5.0, there are errors. It seems that this issue, #1599, #1596, #1593 are all symptoms of the same problem. In my testing, the code breaks at |
🎉 This change has been released in version 3.5.1-alpha.2 |
Closing via #1600 |
This should be fixed with https://github.com/parse-community/Parse-SDK-JS/releases/tag/3.5.1-alpha.2, could you try it out and let us know? |
I confirm that the issue is fixed with [email protected]. |
🎉 This change has been released in version 3.5.1-beta.2 |
🎉 This change has been released in version 3.5.1 |
New Issue Checklist
Issue Description
Parse.Query.first() is not working after [email protected]
Steps to reproduce
let Product = Parse.Object.extend('Product');
const query = new Parse.Query(Product);
let result = await query.first();
NB: Product is a name of a class.
Actual Outcome
throws error
error.code: undefined
error.message: Cannot read properties of undefined (reading 'className')
Expected Outcome
object of 'Product' class
Environment
Using Parse JS SDK:
Server
4.5.0
Back4app
Client
3.5.0
The text was updated successfully, but these errors were encountered: