Comments (21)
need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json
from whatsapp-chatgpt.
Which version are you using?
from whatsapp-chatgpt.
Alguma solução? estou tento o mesmo problema!! :(
└── [email protected]
/Users/guilhermemelo/Codes/CoinNodes/chatbot/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 (/Users/guilhermemelo/Codes/CoinNodes/chatbot/node_modules/whatsapp-web.js/src/webCache/LocalWebCache.js:34:69)
at /Users/guilhermemelo/Codes/CoinNodes/chatbot/node_modules/whatsapp-web.js/src/Client.js:729:36
at processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v20.12.0
from whatsapp-chatgpt.
need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json
from whatsapp-chatgpt.
This worked for me:
npm update whatsapp-web.js
Still giving me the error after scanning the QR Code,
`E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221
throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default')
at puppeteer_evaluation_script:5:95
at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12)
at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9)
Node.js v18.18.0`
from whatsapp-chatgpt.
This worked for me:
npm update whatsapp-web.jsStill giving me the error after scanning the QR Code,
`E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at puppeteer_evaluation_script:5:95 at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12) at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9)
Node.js v18.18.0`
Yeah still not working for me either after the update..
from whatsapp-chatgpt.
This worked for me:
npm update whatsapp-web.jsStill giving me the error after scanning the QR Code,
E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221 throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails)); ^ Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'default') at **puppeteer_evaluation_script**:5:95 at ExecutionContext._evaluateInternal (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:273:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecutionContext.evaluate (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\node_modules\puppeteer\src\common\ExecutionContext.ts:140:12) at Client.initialize (E:\Temp\whatsapp-chatgpt\node_modules\whatsapp-web.js\src\Client.js:327:9) Node.js v18.18.0
Yeah still not working for me either after the update..
Did you update?
from whatsapp-chatgpt.
Did you update?
Yes, I did.
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
So I ran npm update whatsapp-web.js
and it updated to version": "1.22.1"
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
So I ran
npm update whatsapp-web.js
and it updated to version": "1.22.1"
Try updating puppeteer aslo
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
So I ran
npm update whatsapp-web.js
and it updated to version": "1.22.1"
Are you running linux/dockeR?
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
So I ran
npm update whatsapp-web.js
and it updated to version": "1.22.1"Are you running linux/dockeR?
No, simple Windows 10.
from whatsapp-chatgpt.
Did you update?
Yes, I did.
what's the verison of whatsapp-webjs
So I ran
npm update whatsapp-web.js
and it updated to version": "1.22.1"Are you running linux/dockeR?
No, simple Windows 10.
Tried updating pupetter? waht's ypour node verison?
from whatsapp-chatgpt.
need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json
Did you run 'npm install' after changing to the new version? The issue is definitely related to the version of web.js.
from whatsapp-chatgpt.
need to change the "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_7" to "whatsapp-web.js": "https://github.com/Julzk/whatsapp-web.js/tarball/jkr_hotfix_11" in package.json
Did you run 'npm install' after changing to the new version? The issue is definitely related to the version of web.js.
My JSON looks like this after the npm update and npm install:
from whatsapp-chatgpt.
from whatsapp-chatgpt.
doing this step:
const client = new Client({
puppeteer: {
args: ["--no-sandbox"]
},
webVersionCache: {
type: 'remote',
remotePath: `https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html`,
},
authStrategy: new LocalAuth({
dataPath: constants.sessionPath
})
});
I solve this error -> const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
TypeError: Cannot read properties of null (reading '1')
but its raise a new puppetter error - > throw new Error('Evaluation failed: ' + helper_js_1.helper.getExceptionMessage(exceptionDetails));
^
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'push')
this error persist even when u update puppeteer and whatsappweb.js to lastest version.
Has anyone managed to get the application to work?
from whatsapp-chatgpt.
npm install github:pedroslopez/whatsapp-web.js#webpack-exodus
from whatsapp-chatgpt.
Related Issues (20)
- Stucks on the loading screen everytime, no response on sending message!
- How to add a starter keyword to access the Bot?
- Please add custom openai api url option in .env HOT 3
- Latest gpt-4-1106-preview addition to the repo HOT 6
- NPM read-only cache and log dir HOT 6
- TypeError: __vite_ssr_import_5__.Configuration is not a constructor at Module.initOpenAI HOT 4
- Please add Custom GPT assistant. HOT 3
- How to use FastGPT API?
- bot is ready, but can't receive anything
- Error HOT 1
- any support for [email protected]?
- [Feature request] Add LiteLLM support HOT 1
- Getting Request failed error HOT 1
- Error: Failed to launch the browser process! (solved)
- whatsapp bussines api HOT 1
- Feature request (add db)
- Hung thread - Unable to load and log into whatsapp. HOT 2
- Not an Issue: Donations & Professionals available? HOT 1
- Error when "npm run start"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-chatgpt.