Help please (SyntaxError: Unexpected token)

     catch {


SyntaxError: Unexpected token {

at createScript (vm.js:80:10)

at Object.runInThisContext (vm.js:139:10)

at Module._compile (module.js:617:28)

at Object.Module._extensions..js (module.js:664:10)

at Module.load (module.js:566:32)

at tryModuleLoad (module.js:506:12)

at Function.Module._load (module.js:498:3)

at Module.require (module.js:597:17)

at require (internal/module.js:11:18)

at Object.<anonymous> (/rbd/pnpm-volume/f75d6108-83bf-40e6-a95d-a7ce8777e0cd/node_modules/

Make sure you are using node v12 or greater

My node version is 8.15.1 I’m trying to install the new version but it not work

why not? All you need to do is change the version under “engine” in package.json

I try it but still not working

does it give any errors?

(node:6057) UnhandledPromiseRejectionWarning: TypeError: Discord.RichEmbed is not a constructor

2:45 AM

Jump Toat Client. (/app/index.js:54:15)

ah, that’s a different error. in discord.js v12, you need to use Discord.MessageEmbed() instead

1 Like

Thank you very munch

1 Like

no problem, glad to help :slight_smile:

1 Like