Discord.js: Unexpected token {

Created on 23 Feb 2020  路  1Comment  路  Source: discordjs/discord.js

Some discord.js files are returning the error of Unexpected token {

Some of the files doing so can be found here and here -- Both are screenshots.

As far as I know JavaScript, I think it should be replaced with this:

} catch (e) {

(as part of the trycatch method)

invalid

Most helpful comment

you need to update your node version, seems your version is lower than the required version (6.0.0 for stable and 10.2.0 for master)

>All comments

you need to update your node version, seems your version is lower than the required version (6.0.0 for stable and 10.2.0 for master)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Acaretia picture Acaretia  路  3Comments

LLamaFTL picture LLamaFTL  路  3Comments

Blumlaut picture Blumlaut  路  3Comments

BrandonCookeDev picture BrandonCookeDev  路  3Comments

Dmitry221060 picture Dmitry221060  路  3Comments