HWTechClub / Custom-Static-Website-Generator

This is a custom static website generator which can interaction from almost any platform with API control.
https://cwsg-docs.hwtech.club/
GNU General Public License v2.0
4 stars 2 forks source link

Whatsapp module breaking #16

Closed Akilan1999 closed 3 years ago

Akilan1999 commented 3 years ago

I tried doing npm install and npm start. When starting the whatsapp module and scanning QR code this error pops up.

(node:171018) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined
    at __puppeteer_evaluation_script__:5:51
    at ExecutionContext._evaluateInternal (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:171018) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:171018) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:171018) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "canvas" failed: timeout 45000ms exceeded
    at new WaitTask (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:394:34)
    at DOMWorld._waitForSelectorOrXPath (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:326:26)
    at DOMWorld.waitForSelector (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:309:21)
    at Frame.waitForSelector (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:801:51)
    at Page.waitForSelector (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:1215:33)
    at Timeout.getQrCode (/home/akilan/Documents/personal/Custom-Static-Website-Generator/whatsapp-web.js/node_modules/whatsapp-web.js/src/Client.js:125:28)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:171018) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)