You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
client.on('ready', () => {
console.log('client is ready');
})
client.initialize();
wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
^
TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.12.1
Expected behavior
To initialize the client;
Steps to Reproduce the Bug or Issue
node app.js
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
windows
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Describe the bug
as simple as possible.
const { Client } = require('whatsapp-web.js');
const client = new Client();
client.on('qr', (qr) => {
console.log('qr received');
})
client.on('ready', () => {
console.log('client is ready');
})
client.initialize();
wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
^
TypeError: Cannot read properties of null (reading '1')
at LocalWebCache.persist (C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34:69)
at C:\Users\Pedro\Desktop\teste wpp\node_modules\whatsapp-web.js\src\Client.js:744:36
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.12.1
Expected behavior
To initialize the client;
Steps to Reproduce the Bug or Issue
node app.js
Relevant Code
No response
Browser Type
Chromium
WhatsApp Account Type
Standard
Does your WhatsApp account have multidevice enabled?
Yes, I am using Multi Device
Environment
windows
Additional context
No response
The text was updated successfully, but these errors were encountered: