-
Notifications
You must be signed in to change notification settings - Fork 19
Error when building (pnpm migration:run) #23
Description
Hi, trying to setup on Ubuntu 22 LTS but getting the following:
ckstats@btcpool01:~/ckstats$ pnpm migration:run
ckstats@0.3.0 migration:run /home/ckstats/ckstats
ts-node -P tsconfig.scripts.json ./scripts/migration.ts
/home/ckstats/ckstats/node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/typescript.js:2365
for (let i = startIndex ?? 0; i < array.length; i++) {
^
SyntaxError: Unexpected token '?'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module.compile (internal/modules/cjs/loader.js:963:27)
at Object.Module.extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module.load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:85:18)
at attemptRequireWithV8CompileCache (/home/ckstats/ckstats/node_modules/.pnpm/ts-node@10.9.2@types+node@22.7.4_typescript@5.6.2/node_modules/ts-node/dist/util.js:104:16)
at loadCompiler (/home/ckstats/ckstats/node_modules/.pnpm/ts-node@10.9.2@types+node@22.7.4_typescript@5.6.2/node_modules/ts-node/dist/configuration.js:237:56)
at resolveAndLoadCompiler (/home/ckstats/ckstats/node_modules/.pnpm/ts-node@10.9.2@types+node@22.7.4_typescript@5.6.2/node_modules/ts-node/dist/configuration.js:226:16)
ELIFECYCLE Command failed with exit code 1.