-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined #1116
Comments
@contatodct this only happened once? |
@smashah |
I am facing the same issue on windows (10 64 bit). Seems working fine on MAC(Bug Sur/Catalina both). |
@rahulserver |
My initial run was on 3.0.8. Now even after i fix the package json version to "3.0.8" I still get this error on windows. |
just tested on debian 64Bits and windows .... both have the same problem @rahulserver |
@rahulserver @contatodct can you run with and take a screenshot of the browser window and share it here. Also, try with |
@smashah I have run with useChrome: true and headless: false same result. |
There's too much context missing from the original issue. I'm going to need you to fill in the issue template. In the meantime, I will test it on a windows machine. |
@github-actions run Template!(async () => {
//label issue
await githubClient.issues. addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["doesn't follow template"]
})
await postComment(`⚠️⚠️⚠️[Please follow this issue template](https://github.com/smashah/sulla/issues/new?assignees=&labels=&template=bug_report.md&title=)⚠️⚠️⚠️`);
//close issue
await githubClient.issues. update({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
state: "closed"
})
})(); |
|
@smashah |
I believe it is related |
@edneijunior There's nothing to indicate this is a problem with |
^Croot@supernetzap:/var/www/bot/admin# ts-node app.ts
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ ┃
┃ @open-wa/wa-automate ┃
┃ 💬 🤖 The most reliable NodeJS whatsapp library for chatbots with advanced features. ┃
┃ Version: 3.1.0 ┃
┃ Check out the latest changes: https://github.com/open-wa/wa-automate-nodejs#latest-changes ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ (index) │ Values │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ WA_VERSION │ undefined │
│ PAGE_UA │ 'WhatsApp/2.2037.6 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36' │
│ WA_AUTOMATE_VERSION │ '3.1.0' │
│ BROWSER_VERSION │ 'HeadlessChrome/83.0.4103.0' │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
set -> e Error: Evaluation failed: TypeError: Cannot read property 'default' of undefined
at window..window. (/var/www/bot/admin/node_modules/@open-wa/wa-automate/dist/lib/launch.js:1:31435)
at puppeteer_evaluation_script:3:89
at ExecutionContext._evaluateInternal (/var/www/bot/admin/node_modules/puppeteer/lib/ExecutionContext.js:102:19)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at ExecutionContext.evaluate (/var/www/bot/admin/node_modules/puppeteer/lib/ExecutionContext.js:33:16)
-- ASYNC --
at ExecutionContext. (/var/www/bot/admin/node_modules/puppeteer/lib/helper.js:94:19)
at DOMWorld.evaluate (/var/www/bot/admin/node_modules/puppeteer/lib/DOMWorld.js:89:24)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
-- ASYNC --
at Frame. (/var/www/bot/admin/node_modules/puppeteer/lib/helper.js:94:19)
at Page.evaluate (/var/www/bot/admin/node_modules/puppeteer/lib/Page.js:612:14)
at Page. (/var/www/bot/admin/node_modules/puppeteer/lib/helper.js:95:27)
at set (/var/www/bot/admin/node_modules/@open-wa/wa-automate/dist/controllers/auth.js:165:75)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
The text was updated successfully, but these errors were encountered: