Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

0

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

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda