discordx-ts / discordx

🤖 Create a discord bot with TypeScript and Decorators!

Home Page:https://discordx.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: SyntaxError: Unexpected token '&&='

ugnelis opened this issue · comments

What happened?

After running commands:

npx create-discordx # selected 1-starter
npm run build
export BOT_TOKEN=MY_BOTS_TOKEN
npm run start

I get this error:

file:///home/ugnelis/GIT/exergale/bird-game-discord-bot/my-app/node_modules/@discordx/internal/build/esm/decorator/util.js:43
                cond &&= a.index === b.index;
                     ^^^

SyntaxError: Unexpected token '&&='

Reproduction

npx create-discordx # selected 1-starter, package manager NPM
npm run build
export BOT_TOKEN=MY_BOTS_TOKEN
npm run start

Package

@discordx/internal

Version

Stable

Relevant log output

npm run start

> 1-starter@1.0.0 start /home/ugnelis/GIT/exergale/bird-game-discord-bot/my-app
> node build/main.js

file:///home/ugnelis/GIT/exergale/bird-game-discord-bot/my-app/node_modules/@discordx/internal/build/esm/decorator/util.js:43
                cond &&= a.index === b.index;
                     ^^^

SyntaxError: Unexpected token '&&='
    at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)

Code of Conduct

  • I agree to follow this project's Code of Conduct

what's your node version?

The problem was with the node version