nizarfadlan / baileys-api

Simple WhatsApp REST API with multiple device support
MIT License
62 stars 29 forks source link

npm run start error #5

Open Fajar-G opened 1 month ago

Fajar-G commented 1 month ago

baileys-api@1.1.4 start node -r tsconfig-paths/register -r ts-node ./dist/index.js

node:internal/modules/cjs/loader:1148 throw err; ^

Error: Cannot find module 'C:\wa_api\dist\index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15) at Module._resolveFilename (C:\wa_api\node_modules\tsconfig-paths\lib\register.js:103:40) at Module._load (node:internal/modules/cjs/loader:986:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) at node:internal/main/run_main_module:28:49 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Node.js v20.15.1

Fajar-G commented 1 month ago

also adding webhook implementation for incoming message would be great

nizarfadlan commented 1 month ago

also adding webhook implementation for incoming message would be great

The next version already exists but has not yet been tested