-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgade node version * Update package.json * Node v18 * Update README.md * Prevent unverified lib upgrade --------- Co-authored-by: Rajeh Taher <rajeh@reforward.dev> Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com>
- Loading branch information
1 parent
72a1881
commit 79f0563
Showing
2 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having trouble running tests on the platform; it says it's damaged. Should I perform any additional process?
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\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')
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\node_modules\whatsapp-web.js\src\webCache\LocalWebCache.js:34
const version = indexHtml.match(/manifest-([\d.]+).json/)[1];
^
After making this change in LocalWebCache.js for this error,
// async persist(indexHtml) {
// // extract version from index (e.g. manifest-2.2206.9.json -> 2.2206.9)
// const version = indexHtml.match(/manifest-([\d\.]+).json/)[1];
// if(!version) return;
I can generate QR codes now, but after successful login, the following error occurs:
F:\code\pro-admin-billion\billion-platform\nodejsServe\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 (F:\code\pro-admin-billion\billion-platform\nodejsServe\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:221:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async ExecutionContext.evaluate (F:\code\pro-admin-billion\billion-platform\nodejsServe\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:110:16)
at async Client.initialize (F:\code\pro-admin-billion\billion-platform\nodejsServe\node_modules\whatsapp-web.js\src\Client.js:323:9)
Node.js v20.11.1
When I try to use other lower versions, I find that after successful login, other listening events cannot be monitored. What could be the reason for this?
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SOLUÇÂO:
Olá a todos! Para instalar o patch, execute:
npm install github:pedroslopez/whatsapp-web.js#webpack-exodus
A razão pela qual ainda não foi fundida é porque ainda estou trabalhando na estabilidade.
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link da solução oficial #2789
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still can not
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I downgraded node to version 14.21.3, applied the fix npm install github:pedroslopez/whatsapp-web.js#webpack-exodus and updated the libs. Now my project is back up and running!
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a problem after updating the package, it doesn't work well on alpine, I use docker node:lts-alpine.
after I changed to node:18-slim , it worked fine.
this is my Dockerfile:
79f0563
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks work gan