pranavms13 / whatsapp-node-api

A Simple NodeJS API Wrapper for WhatsApp
Other
471 stars 184 forks source link

Failed to Start api.js #33

Closed semplon closed 2 years ago

semplon commented 3 years ago

Hi, this happen when i try to start api.js

/whatsapp-node-api/node_modules/node-webpmux/webp.js:424 if (!this.data.extended) { this.#convertToExtended(); } ^

SyntaxError: Invalid or unexpected token at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/home/semplon/waapi/whatsapp-node-api/node_modules/whatsapp-web.js/src/util/Util.js:8:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

oxtrue-dev commented 3 years ago

npm i whatsapp-web.js@v1.12.5

pranavms13 commented 2 years ago

Not sure what is happening here. Please clone latest code, reinstall npm modules and try again