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

117
Views
Error for slash commands. How can I fix it?

Hey I am getting this when I do:

const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');

Here is the error:

Click me to see

Any fix for this error or packages?

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

0

Upgrade your Node.js version.

You're using a version of Node.js that doesn't support the ?? operator, which the version of Discord.js you're using does require.

The first version to support that operator is 14.0.

about 4 years ago · Juan Pablo Isaza Report

0

I did in a .replit file: run = "npm i node@14.0.0" It updated. Thanks for all your help!

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!