-
Notifications
You must be signed in to change notification settings - Fork 16
Description
What happened?
Hi!
I was running into the following error when testing out the CLI, after configuring the ESLint plugin:
npx code-pushup
TypeError: groups.toSorted is not a function
at groupsFromRuleCategories ....
I believe this stems from the use of the Array.prototype.toSorted()
method, which is supported from Node v20+, whereas I was using Node v18.
What would you expect to happen?
There is no mention in the README about minimum node version, so it would be a good idea to add this as a pre-requisite in the "getting started" guide somewhere.
Even the GitHub Actions example config here: https://github.com/code-pushup/cli/wiki/Code-PushUp-integration-guide-for-Nx-monorepos#ci-automation is using Node v18 - so that should also be updated too.
What steps did you take?
As above - run npx code-pushup
after following the getting started guide.
Code PushUp package version
"@code-pushup/cli": "^0.53.1", "@code-pushup/eslint-plugin": "^0.53.1",
What operation system are you on?
Linux
Node version
18.18.2
Relevant log output
TypeError: groups.toSorted is not a function
at groupsFromRuleCategories ....