Ask coding questions

← Back to all posts
I keep getting this error and I don't understand why
MahdiRazzaque

/home/runner/fast-and-furious-discord-bot/bot.js:40
commands = client.application?.commands

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
(https://storage.googleapis.com/replit/images/1633369046822_3e24ff802db4d11a33995b23776cfb24.png)

exit status 1

Voters
MahdiRazzaque
Comments
hotnewtop
MrVoo

I don't think that ? can be there

MahdiRazzaque

@MrVoo I was following a youtube tutorial and it works when running it locally and on heroku.