`TypeError: Cannot read properties of undefined (reading `<typescript_attributes>')`

Advertisements I’m a novice in typescript. I was received error like this: TypeError: Cannot read properties of undefined (reading ‘_service’) at … at … at … when trying to call getNotesHandler() function. This is a full code: import { Request, ResponseObject, ResponseToolkit } from "@hapi/hapi"; import { ClientError } from "../../exceptions/ClientError"; import { NotesService }… Read More `TypeError: Cannot read properties of undefined (reading `<typescript_attributes>')`

"Expected "payload" to be a plain object" when signing a jwt token

Advertisements This is the error apis_1 | Error: Expected "payload" to be a plain object. apis_1 | at validate (/lens-apis/node_modules/jsonwebtoken/sign.js:40:11) apis_1 | at validatePayload (/lens-apis/node_modules/jsonwebtoken/sign.js:62:10) apis_1 | at Object.module.exports [as sign] (/lens-apis/node_modules/jsonwebtoken/sign.js:114:7) apis_1 | at /lens-apis/dist/org/signup/signup.route.js:115:37 apis_1 | at Generator.next (<anonymous>) apis_1 | at fulfilled (/lens-apis/dist/org/signup/signup.route.js:5:58) apis_1 | at processTicksAndRejections (internal/process/task_queues.js:95:5) this is the code… Read More "Expected "payload" to be a plain object" when signing a jwt token