fix: Corregir versiones de npm y imports ESM de Baileys
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m7s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m7s
- Downgrade a Nuxt 3.14.0 (Nuxt 4 no existe todavía) - Downgrade @nuxt/ui a ^3.0.0 - Downgrade Baileys a ^6.7.9 (versión estable) - Corregir imports ESM de Baileys en auth-state.ts y manager.ts - Remover compatibilityDate (específico de Nuxt 4)
This commit is contained in:
@@ -2,15 +2,15 @@
|
||||
* BaileysManager - Manages multiple WhatsApp instances
|
||||
* Singleton pattern for managing all Baileys connections
|
||||
*/
|
||||
import makeWASocket, {
|
||||
import type { WASocket, BaileysEventMap } from '@whiskeysockets/baileys'
|
||||
import pkg from '@whiskeysockets/baileys'
|
||||
const {
|
||||
default: makeWASocket,
|
||||
DisconnectReason,
|
||||
fetchLatestBaileysVersion,
|
||||
makeCacheableSignalKeyStore,
|
||||
useMultiFileAuthState,
|
||||
type WASocket,
|
||||
type BaileysEventMap,
|
||||
Browsers
|
||||
} from '@whiskeysockets/baileys'
|
||||
} = pkg
|
||||
import { Boom } from '@hapi/boom'
|
||||
import { EventEmitter } from 'events'
|
||||
import QRCode from 'qrcode'
|
||||
|
||||
Reference in New Issue
Block a user