Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

422
Views
SyntaxError: Unexpected token '?'

when i run the code it tell me :

~/DiscordBot-Flash$ npm start
> djs@1.0.0 start /home/runner/DiscordBot-Flash
> node index.js

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

SyntaxError: Unexpected token '?'

i don't know how to fix that can some one help me please

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

This is the nullish coalescing operator and it is supported in node from 14.0.0

In their docs they write nodejs version 16.6.0 or newer is required

Fix: upgrade node version to at least 16.6.0

about 4 years ago · Juan Pablo Isaza Report

0

This is the solution for the people who use repl.it https://blog.abbasali.me/how-to-use-nodejs-v16x-on-replit

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!