Closed jtrull101 closed 6 months ago
Last successful fetch was "2023-11-03 06:30:29.881" according to the epic-games.json log
Can't reproduce. Looks like you use some very old version of node. ||= was added in v15: https://stackoverflow.com/questions/69515305/logical-or-assignment-not-working-on-nodejs
The docker image has a newer version, so idk how that should be possible.
Are you still on bullseye or which OS are you using? https://packages.debian.org/search?keywords=nodejs
See https://nodejs.org/en/download/ for how to install a newer version.
Running on Win 11. Node version reported by gitbash is v14.17.3 The date of the last fetch coincides with some angular work I was doing on my local environment with that node version. Thank you for looking into this
But maybe a good idea to check the node version in the script if that's possible without tripping up the lexer already for old versions.
Yea, as expected, doesn't work: https://tio.run/#javascript-node
Could check node -v
, but doesn't make sense to have some wrapper for that.
Put the constraint in package.json
such that it could be checked for #219 or npx
.
Whether using the docker container or locally , I have been seeing this problem:
file:///{PATH}/free-games-claimer/gog.js: 89 db.data[user] ||= {}; ^^^
SyntaxError: Unexpected token '||=' ←[90m at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)←[39m ←[90m at async link (internal/modules/esm/module_job.js:63:21)←[39m
Same behavior for prime, gog, and epic