/rbd/pnpm-volume/35fc3320-2bd9-4943-8b77-fecb6a001ecd/node_modules/.registry.npmjs.org/discord.js/12.3.1/node_modules/discord.js/src/client/Client.js:41
} catch {
^
SyntaxError: Unexpected token {
ok the error may seem simple to understand but I can’t find it inside my code, even reducing it to the bone, it keeps giving me error:
these is my package.json:
{
“name”: “bothouse”,
“version”: “0.1.1”,
“description”: “Comune per i BOT EXCP”,
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
},
“dependencies”: {
“express”: “^4.17.1”,
“discord.js”: “^12.3.1”,
“node”: “^14.8.0”
},
“engines”: {
“node”: “8.x”
},
“repository”: {
“url”: “the correct URL”
},
“license”: “MIT”,
“keywords”: [
“node”,
“glitch”,
“express”,
“discord”
]
}
and these is the simple erver.js:
const fs = require(“fs”); // utilizza FS.js File system dll
const Discord = require(“discord.js”); // Utilizza la libreria di discord.js
const RALFclient = new Discord.Client(); // definisco una variabile come client di discord
//const NOLANclient = new Discord.Client(); // definisco una variabile come client di discord
//const TRIGGERclient = new Discord.Client(); // definisco una variabile come client di discord
const XMLHttpRequest = require(“xmlhttprequest”).XMLHttpRequest;RALFclient.login(process.env.TOKEN);
//NOLANclient.login(process.env.NOLANTOKEN);
//TRIGGERclient.login(process.env.TRIGGERTOKEN);