Discord.js yeni sürüm hatası

merhaba discord.js yeni sürümünü yüklediğimde şöyle bir hata alıyorum

lütfen yardım edin nasıl yapıcağımıda anlamadım eski sürümünde sıkıntı yok ama 12.2.0 sürümünü yüklediğim anda hatayı alıyorum.

kodunu görebilir miyim

(Google translate)

You have an extra { somewhere.

I believe that is one of the many errors that occurs when trying to use discord.js v12 with a node version less than 12.

Add this to your package.json file.

"engines": {
    "node": "12.x"
  }
1 Like

You have an extra { which shouldn’t be there in the client.js file

1 Like


şimdide bu

client.guilds.reduce is not a valid function. Check the docs for an alternative.