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

366
Views
¿Cuál es el problema? El código no arroja ningún error, pero dice SyntaxError: no se puede usar la declaración de importación fuera de un módulo.

Este es el error que me sale:

SyntaxError: no se puede usar la declaración de importación fuera de un módulo

 .on("queueEnd", (player) => { let QueueEmbed = new MessageEmbed() .setAuthor({ name: "The queue has ended", iconURL: this.botconfig.IconURL, }) .setColor(this.botconfig.EmbedColor) .setTimestamp(); client.channels.cache .get(player.textChannel) .send({ embeds: [QueueEmbed] }); }) if (!this.botconfig["24/7"]) { setTimeout(() => { if (player.paused || player.playing || player.queue.length > 0) return; player.destroy(); },2*60*1000//time in milliseconds ;-; 2 minutes )}; }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Siempre que utilice las palabras clave de import (o export ), deberá asegurarse de que el archivo que contiene estas palabras clave sea un módulo. Una forma común de cometer un error a este respecto es crear una etiqueta <script> en su HTML sin un atributo type="module" .

Lea más aquí: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

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!