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

Lint broken on node v4 #11

Closed
nfischer opened this issue Dec 7, 2023 · 0 comments · Fixed by #12
Closed

Lint broken on node v4 #11

nfischer opened this issue Dec 7, 2023 · 0 comments · Fixed by #12
Labels

Comments

@nfischer
Copy link
Owner

nfischer commented Dec 7, 2023

Node version (or tell us if you're using electron or some other framework)

v4

ShellJS version (the most recent version/GitHub branch you see the bug on)

happening on GitHub Actions CI

Operating system

all

Description of the bug:

/home/runner/work/shelljs-plugin-tr/shelljs-plugin-tr/node_modules/eslint/node_modules/optionator/node_modules/word-wrap/index.js:9
  let lastCharPos = str.length - 1;
  ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:[34](https://github.com/nfischer/shelljs-plugin-tr/actions/runs/7124954173/job/19400042971?pr=10#step:5:35)3:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:[35](https://github.com/nfischer/shelljs-plugin-tr/actions/runs/7124954173/job/19400042971?pr=10#step:5:36)3:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/home/runner/work/shelljs-plugin-tr/shelljs-plugin-tr/node_modules/eslint/node_modules/optionator/lib/help.js:6:14)
    at Object.<anonymous> (/home/runner/work/shelljs-plugin-tr/shelljs-plugin-tr/node_modules/eslint/node_modules/optionator/lib/help.js:260:4)
    at Module._compile (module.js:[40](https://github.com/nfischer/shelljs-plugin-tr/actions/runs/7124954173/job/19400042971?pr=10#step:5:41)9:26)

See https://github.com/nfischer/shelljs-plugin-tr/actions/runs/7124954173/job/19400042971?pr=10

It looks like one of our dependencies is no longer v4-compatible.

Example ShellJS command to reproduce the error:

npm run lint
@nfischer nfischer added the bug label Dec 7, 2023
@nfischer nfischer changed the title Lint broken on 4 Lint broken on node v4 Dec 7, 2023
@nfischer nfischer added chore and removed bug labels Dec 7, 2023
nfischer added a commit that referenced this issue Dec 7, 2023
The lint command appears to be broken on node v4. It should be fine to
skip this on v4 though since we can run lint on >= v6.

Fixes #11
nfischer added a commit that referenced this issue Dec 7, 2023
The lint command appears to be broken on node v4. It should be fine to
skip this on v4 though since we can run lint on >= v6.

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

Successfully merging a pull request may close this issue.

1 participant