Ask coding questions

← Back to all posts
the bot wont to run it says unxpected token
mokagamer6

so when i press run there is an error appears please i want to solve fast

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
mokagamer6
Comments
hotnewtop
Coder100

Node uses discord.js v14 instead of v12. Replit node can't support that version.

Fix

change your .replit file to this:

Other solution

Open the shell:

then type in:

mokagamer6

@Coder100 Thanks so much you helped me alot

Coder100
mokagamer6

pls help fast

SixBeeps

@mokagamer6 For future reference, asking for help quickly doesn't really change how fast you get a response. Better to ask in the Discord if it's urgent.