[GH-ISSUE #5] Cannot read property "valueOf" of null. Value of path "..." is not an object (anymore) #5

Closed
opened 2026-05-23 08:36:14 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @appy-one on GitHub (Mar 16, 2021).
Original GitHub issue: https://github.com/appy-one/acebase-core/issues/5

Originally assigned to: @appy-one on GitHub.

Using .valueOf() on a proxied object that does not exists/has no value throws this error.

Example:

const proxy = db.ref('some/nonexisting/object').proxy();
const obj = proxy.value;
console.log(obj.valueOf()) // <-- throws error, should return null
Originally created by @appy-one on GitHub (Mar 16, 2021). Original GitHub issue: https://github.com/appy-one/acebase-core/issues/5 Originally assigned to: @appy-one on GitHub. Using ```.valueOf()``` on a proxied object that does not exists/has no value throws this error. Example: ```js const proxy = db.ref('some/nonexisting/object').proxy(); const obj = proxy.value; console.log(obj.valueOf()) // <-- throws error, should return null ```
gitea-mirror 2026-05-23 08:36:14 -06:00
Author
Owner

@appy-one commented on GitHub (Mar 16, 2021):

Fix published in acebase-core v1.2.3

<!-- gh-comment-id:800186976 --> @appy-one commented on GitHub (Mar 16, 2021): Fix published in acebase-core v1.2.3
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-core#5
No description provided.