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

Problems with "Running Benchmarks Locally" instructions #37

Open
z5h opened this issue Mar 29, 2021 · 0 comments
Open

Problems with "Running Benchmarks Locally" instructions #37

z5h opened this issue Mar 29, 2021 · 0 comments

Comments

@z5h
Copy link

z5h commented Mar 29, 2021

Hey Matt and team. I tried Running Benchmarks locally.
First, instructions assume tsc is already installed. (Easy fix).
Second problem is tsconfig.json is too restrictive to allow successful compilation. The following loosening of restrictions permits compilation:

-    "noUnusedLocals": true,
-    "noUnusedParameters": true,
+    "noUnusedLocals": false,
+    "noUnusedParameters": false

Next, is an error with terser. I'm not clear on the fix here:

Error compressing with Terser
Error mangling with Terser                                                                                                                   Error compressing with Terser                                                                                                                Error mangling with Terser                                                                                                                   Error: ENOENT: no such file or directory, open 'testcases/html/output/elm.opt.min.js'                                                        Error: ENOENT: no such file or directory, open 'testcases/html/output/elm.opt.min.js'
...
RuntimeError: abort(Error: ENOENT: no such file or directory, open 'testcases/html/output/elm.opt.min.js'). Build with -s ASSERTIONS=1 for more info.
    at process.abort (/Users/mark/work/elm-optimize-level-2/node_modules/@gfx/zopfli/dist/libzopfli.js:1:11690)
    at process.emit (node:events:369:20)
    at process.emit (node:domain:470:12)
    at process.emit (/Users/mark/work/elm-optimize-level-2/node_modules/source-map-support/source-map-support.js:495:21)
    at emit (node:internal/process/promises:135:22)
    at processPromiseRejections (node:internal/process/promises:241:25)
    at processTicksAndRejections (node:internal/process/task_queues:95:32)
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