The DockerFile, unlike the documentation, is using Node 14 instead of the recommended 16. This was causing issues with Beileys.
With node 14:
6.971 src/helpers/GetTicketWbot.ts(1,26): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/GetWbotMessage.ts(1,23): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/GetWhatsappWbot.ts(1,26): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/SendMessage.ts(3,35): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/SetTicketMessagesAsRead.ts(1,16): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/authState.ts(5,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/authState.ts(6,50): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/helpers/authState.ts(66,33): error TS2538: Type 'symbol' cannot be used as an index type.
6.972 src/helpers/useMultiFileAuthState.ts(8,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/libs/store.ts(11,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/libs/wbot.ts(7,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/libs/wbot.ts(10,25): error TS2307: Cannot find module '@whiskeysockets/baileys/lib/Utils/logger' or its corresponding type declarations.
6.972 src/sendWork.ts(1,26): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/BaileysServices/CreateOrUpdateBaileysService.ts(1,31): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/ChatBotListener.ts(1,33): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/CheckIsValidContact.ts(1,26): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/DeleteWhatsAppMessage.ts(1,26): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/SendWhatsAppMedia.ts(1,46): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/SendWhatsAppMessage.ts(1,27): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/wbotMessageListener.ts(18,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
6.972 src/services/WbotServices/wbotMonitor.ts(5,8): error TS2307: Cannot find module '@whiskeysockets/baileys' or its corresponding type declarations.
The DockerFile, unlike the documentation, is using Node 14 instead of the recommended 16. This was causing issues with Beileys.
With
node 14
: