-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected token ' . ' [solved] #22
Comments
Vps azure? |
localhost |
Byk juga yg ngalamin ini tapi saya blm nemu solusinya😁. Mungkin teman-teman yang lain bisa bantu |
It looks like there is a problem with the JavaScript syntax on line 226 of your index.js file. let reason; This code uses an if statement to check if the lastDisconnect and lastDisconnect.error objects exist before trying to access their properties. #fix |
sama bang cara solved nya gmna ya?? |
Solved gan , harus pake node versi 16 untuk solved di vps/c9 gunakan command ini
|
karna ternary methode itu hanya support di nodejs v16 keatas , default install nodejs pada saat pertama install di ubuntu itu versi 12 , jadi harus di upgrade versi nodejs nya sudo npm install -g n
n install lts
hash -r |
eror:openai.createChatCompletion is not a function plase solution please... |
You need to update the OpenAI package npm update openai |
error code:
index.js:226
let reason = new Boom(lastDisconnect?.error)?.output.statusCode
^
SyntaxError: Unexpected token '.'
The text was updated successfully, but these errors were encountered: