Ask coding questions

← Back to all posts
Help
ConnorisTyping (0)

Hey, i am continuously getting an error on my code even when i try make a new one, or even a new account it still doesnt work this is the error its giving me

/home/runner/CMC-Bot/node_modules/discord.js/src/rest/RESTManager.js:32
const token = this.client.token ?? this.client.accessToken;
^

SyntaxError: Unexpected token '?'

Can anyone help me???

Comments
hotnewtop
JacobBirch (6)

@19ecal responded as well, but that answer was wrong. This is a api issue with node modules, its best to go to package.json and change the version to ^12.5.1 for example.