Skip to content
Does anyone else have this issue?
Profile icon

Ever since I updated my discord bot from discord.js version 12 to discord.js version 13, it has not allowed me to start my bot. It logs an error that points to a file within node_modules that I cannot see.

Error: SyntaxError: Unexpected token '?'

Does anyone have a fix or know why this is happening?

You are viewing a single comment. View All
Answered by JustCoding123 [earned 5 cycles]
View Answer
Profile icon


Look at my GitHub respository
To run discord.js v13 you need node.js v16.6 or higher then that
you have to import this repository to your repl and do your things in the index.js
Don't touch other things if you don't know what you are doing

Cheers Nandu