client = new Client({
authStrategy: new LocalAuth({
clientId: phoneNo,
dataPath: sessionsPath,
}),
webVersionCache: {
type: 'remote',
remotePath:
'https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html',
},
puppeteer: {
headless: true, // or false if you want to see the browser
args: ['--no-sandbox', '--disable-setuid-sandbox'], // other Chromium flags if needed
},
...clientOpts,
})
This is my code to initialize a client using whatsapp-web.js package
- My issue is in the webVersionCache url I used the latest pushed here in the repo but it’s not working any idea what is the issue here and how to solve it. Thanks
Lates commit link: https://github.com/wppconnect-team/wa-version/commit/bd46ca03c765648e9ce0f788670a788953d63fd8
I tried this link https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/2.3000.1014590669-alpha.html
and I was expecting the qr code to pass but I got error Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')