ookamiiixd / baileys-api

Simple WhatsApp REST API with multiple device support
MIT License
432 stars 328 forks source link

new installation error #52

Closed drdaga closed 2 years ago

drdaga commented 2 years ago

start node .

file:///home/ubuntu/baileys-api/whatsapp.js:8 makeInMemoryStore, ^^^^^^^^^^^^^^^^^ SyntaxError: Named export 'makeInMemoryStore' not found. The requested module '@adiwajshing/baileys' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from '@adiwajshing/baileys';

at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
at async loadESM (node:internal/process/esm_loader:88:5)
at async handleMainPromise (node:internal/modules/run_main:61:12)
ookamiiixd commented 2 years ago

Could you add more details so that i can investigate it?

Like step to reproduce, your NodeJS version, environment, etc.