Preinstall Script Fails #1914

Closed
opened 2026-04-05 16:38:34 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @bionemesis on 6/5/2023

The preinstall.sh script failed on the latest up-to-date version of Ubuntu 22.04 and Debian 11.

`/usr/local/lib/node_modules/typescript/lib/typescript.js:139
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:74:18)
at attemptRequireWithV8CompileCache (/usr/local/lib/node_modules/ts-node/dist/util.js:104:16)
at loadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:237:56)
at resolveAndLoadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:226:16)`

*Originally created by @bionemesis on 6/5/2023* The preinstall.sh script failed on the latest up-to-date version of Ubuntu 22.04 and Debian 11. `/usr/local/lib/node_modules/typescript/lib/typescript.js:139 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:74:18) at attemptRequireWithV8CompileCache (/usr/local/lib/node_modules/ts-node/dist/util.js:104:16) at loadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:237:56) at resolveAndLoadCompiler (/usr/local/lib/node_modules/ts-node/dist/configuration.js:226:16)`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1914