SchwaIndustries / ScrimBot

Discord bot for organizing Valorant custom games.
https://scrimbot.schwa.tech
MIT License
39 stars 20 forks source link

SyntaxError: Unexpected token '?' #26

Closed axsddlr closed 3 years ago

axsddlr commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: just run the bot

E:\Programs\gitrepos\ScrimBot\src\services\matchCreation.js:77
        matchRecord.creationInformation.map = CONSTANTS.MAPS.find(e => e === content) ?? content
                                                                                       ^

SyntaxError: Unexpected token ?

Expected behavior A clear and concise description of what you expected to happen.

Bot Version 1.4.0

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Kalissaac commented 3 years ago

Hi, could you try using Node 14 or greater and let me know if that works?

axsddlr commented 3 years ago

Hi, could you try using Node 14 or greater and let me know if that works?

that did the trick now getting

Error: Value for argument "documentPath" is not a valid resource path. Path must be a non-empty string.
Kalissaac commented 3 years ago

Do you have a line or any type of stacktrace for that? Does it happen when the bot starts up or is it when a specific command is run?