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

268
Views
No se puede ejecutar .value() en una propiedad inexistente de un objeto inexistente

uso stormdb mi estructura de base de datos:

(identificación == 1)

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

quiero insertar la cadena de "texto" "hola", use esto:

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

pero tengo un error: Error: no se puede ejecutar .value() en una propiedad inexistente de un objeto inexistente.

¿que puedo hacer?

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

0

Esto significa que su base de datos no está almacenada ni tiene el nombre que usted cree.
Es posible que lo hayas creado mal.

Pruebe cada uno de estos:


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

Si falla, su base de datos no existe.


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

Si falla, no hay entrada de id '1'.


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

Si falla, su lista de 'texto' no existe.


Esto le dirá qué parte de su base de datos o entrada falta.

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!