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

229
Views
Discord.js v13 sending error. It's alright in discord.js v12. How to fix it?

I upgraded my Discord.js v12 to v13 but it send to me this error

/home/discord/project/bloodmoon/node_modules/discord.js/src/rest/APIRequest.js:33
    agent ??= new https.Agent({ ...this.client.options.http.agent, keepAlive: true });
          ^^^

SyntaxError: Unexpected token '??='

My node.js version is 16.7.0

node -v
v16.7.0

I think it's node.js problem it i can't find problem in that. what's the problem?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I had the same issue and fixed it by installing the latest version of NodeJS (16.11.0 at the time I'm writing this), not the LTS version (14.x.x)

over 4 years ago · Santiago Trujillo Report

0

To fix this update the latest version of node. Currently v16.9.1

over 4 years ago · Santiago Trujillo 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!