skip to Main Content

Javascript – Npm package whatsapp-web.js broke

I have been working with whatsapp-wb.js for a while. Recently the package is not working anymore. Firstly, when I try their latest package i.e. "whatsapp-web.js": "^1.23.0", even before the qr code shows up, it throws: .../node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34 const version = indexHtml.match(/manifest-([d\.]+).json/)[1];…

VIEW QUESTION

Javascript – whatsapp-web.js, How can I fix TypeError: Cannot read properties of null (reading '1')

const version = indexHtml.match(/manifest-([d.]+).json/)[1]; ^ TypeError: Cannot read properties of null (reading '1') at LocalWebCache.persist (/Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:29:69) at /Users/abc/Desktop/haba/node_modules/whatsapp-web.js/src/Client.js:744:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) Node.js v20.11.1 once the code is run the second time, it always brings this error. i was using nodemon…

VIEW QUESTION
Back To Top
Search