You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script initiate the connections with the service and return a QR code after that the app finish their connection and run as expected
bun run ./src/testTS.ts
{"level":30,"time":"2024-06-23T22:56:05.009Z","pid":57726,"hostname":"runtime","class":"baileys","browser":["Chrome (Linux)","",""],"helloMsg":{"clientHello":{"ephemeral":"oEIL2E1am4KB6jBpR393x0BECAr0AKlAP2g0eCGjpSg="}},"msg":"connected to WA"}
{"level":30,"time":"2024-06-23T22:56:05.246Z","pid":57726,"hostname":"runtime","class":"baileys","node":{"username":"573132603018","passive":true,"userAgent":{"platform":"WEB","appVersion":{"primary":2,"secondary":2413,"tertiary":1},"mcc":"000","mnc":"000","osVersion":"0.1","manufacturer":"","device":"Desktop","osBuildNumber":"0.1","releaseChannel":"RELEASE","localeLanguageIso6391":"en","localeCountryIso31661Alpha2":"US"},"webInfo":{"webSubPlatform":"WEB_BROWSER"},"connectType":"WIFI_UNKNOWN","connectReason":"USER_ACTIVATED","device":6},"msg":"logging in..."}
{"level":30,"time":"2024-06-23T22:56:06.578Z","pid":57726,"hostname":"runtime","class":"baileys","msg":"29 pre-keys found on server"}
{"level":30,"time":"2024-06-23T22:56:06.806Z","pid":57726,"hostname":"runtime","class":"baileys","msg":"opened connection to WA"}
{"level":30,"time":"2024-06-23T22:56:07.100Z","pid":57726,"hostname":"runtime","class":"baileys","msg":"handled 0 offline messages/notifications"}
What do you see instead?
SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: '__importStar'.
bun run ./src/testTS.ts ──(Wed,Jun26)─┘
13 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14 | Object.defineProperty(o, "default", { enumerable: true, value: v });
15 | }) : function(o, v) {
16 | o["default"] = v;
17 | });
18 | var __importStar = (this && this.__importStar) ||function(mod) {
^
SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: '__importStar'.
at <parse> (/Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Utils/messages-media.js:18:1)
at anonymous (native:1:1)
at /Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Utils/messages.js:668:13
at anonymous (native:1:1)
at /Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Utils/index.js:14:96
at anonymous (native:1:1)
at /Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Signal/libsignal.js:64:13
at anonymous (native:1:1)
at /Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Defaults/index.js:9:1
at anonymous (native:1:1)
at /Users/joao/Documents/BUN/2tex/node_modules/@whiskeysockets/baileys/lib/Socket/index.js:3:1
Additional information
No response
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.16
What platform is your computer?
Darwin 21.6.0 x86_64 i386
What steps can reproduce the bug?
package.json
testTS.ts
What is the expected behavior?
The script initiate the connections with the service and return a QR code after that the app finish their connection and run as expected
What do you see instead?
SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: '__importStar'.
Additional information
No response
The text was updated successfully, but these errors were encountered: