Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
Can't run .value() on non-existant property of non-existant object

i use stormdb my database structure:

(id == 1)

[id]: {
    text: [
      "example", "text"
    ],
    pictures: ["111"],
    chance: {
      "global": 20,
      "demotivator": 10,
      "poll": 10,
      "mem": 10,
      "sticker": 10,
      "bugurt": 10,
      "anekdot": 10
    },
    isGold: false
  }

i want to push in "text" string "hello", use this:

db.get(`conversations`).get(1).get("text").push("hello").save();

but i have error: Error: Can't run .value() on non-existant property of non-existant object.

what can i do?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This means your database is not stored or named the way you think it is.
You might have created it wrong.

Try each of these:


console.log( db.get( 'conversations' ).value() );

If it fails, your database does not exist.


console.log( db.get( 'conversations' ).get( 1 ).value() );

If it fails, there is no id '1' entry.


console.log( db.get( 'conversations' ).get( 1 ).get( "text" ).value() );

If it fails, your 'text' list does not exist.


This will tell you what part of your database or entry is missing.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!