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

339
Views
Heroku | SyntaxError: Unexpected token '?? =' (question mark question mark equals)

When I run my node js app, Heroku reports an error:

/app/node_modules/discord.js/src/rest/APIRequest.js:34
agent ?? = new https.Agent ({... this.client.options.http.agent, keepAlive: true});

SyntaxError: Unexpected token '?? ='

The problem is that even if I comment out this line or delete it, the problem is not solved. And the error will prevent me from running the code.

As far as I understand, this is a new symbol for node js, which is inconsistent with heroku's version of node js, but this is just guesswork. So how do I fix this? Thanks in advance

about 4 years ago · Juan Pablo Isaza
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!