Home > Software design >  Node.js Undefined (reading 'value') error
Node.js Undefined (reading 'value') error

Time:11-02

i work on node.js and ejs. i got "TypeError: Cannot read properties of undefined (reading 'push')" error.

it's my code ! enter image description here Schema error

i can write id log but i can't push to my array field.. some needs help

CodePudding user response:

user.course is undefined, try console.log before pushing. It might help

  • Related