[Bug]: SyntaxError: Unexpected token '&&='
ugnelis opened this issue · comments
Ugnius Malūkas commented
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
Vijay Meena (Samar) commented
what's your node version?
Ugnius Malūkas commented
The problem was with the node version