Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript uncaught exception on npm start #99

Open
matt-sd-watson opened this issue Jul 2, 2024 · 0 comments
Open

Javascript uncaught exception on npm start #99

matt-sd-watson opened this issue Jul 2, 2024 · 0 comments

Comments

@matt-sd-watson
Copy link

The following stack trace occurs when attempting to run mantis locally using npm start:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Module build failed (from ./node_modules/ts-loader/index.js):
/home/matt/github/mantis-viewer/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:85:18)
    at Object.<anonymous> (/home/matt/github/mantis-viewer/node_modules/ts-loader/dist/utils.js:6:20)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at ./main.ts (/home/matt/github/mantis-viewer/app/main.js:10:7)
    at /home/matt/github/mantis-viewer/app/main.js:21:43
    at Object.<anonymous> (/home/matt/github/mantis-viewer/app/main.js:23:12)
    at Module._compile (node:internal/modules/cjs/loader:1118:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:988:32)
    at Module._load (node:internal/modules/cjs/loader:829:12)
    at c._load (node:electron/js2c/asar_bundle:5:13343)
    at loadApplicationPackage (/home/matt/github/mantis-viewer/node_modules/electron/dist/resources/default_app.asar/main.js:110:16)
    at Object.<anonymous> (/home/matt/github/mantis-viewer/node_modules/electron/dist/resources/default_app.asar/main.js:222:9)

This is after the following npm installations:

npm install canvas
npm install

npm version: 8.5.1
node version: v12.22.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant