saifulcoder / laravel-whatsapp-server

Simple RESTful WhatsApp API with Laravel 8
MIT License
515 stars 266 forks source link

Error index.js not found #40

Closed normalpeople015 closed 1 year ago

normalpeople015 commented 1 year ago

Error index.js not found

$ npm start

baileys-api@1.0.0-beta.0 start node .

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

Error: Cannot find module 'C:\laragon\www\laravel-whatsapp-server\backend\dist\index.js'. Please verify that the package.json has a valid "main" entry at tryPackage (node:internal/modules/cjs/loader:448:19) at Module._findPath (node:internal/modules/cjs/loader:692:18) at resolveMainPath (node:internal/modules/run_main:15:25) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:24) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', path: 'C:\laragon\www\laravel-whatsapp-server\backend\package.json', requestPath: 'C:\laragon\www\laravel-whatsapp-server\backend' }

donnebanget commented 1 year ago

npm run build then npm start