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

Unseen selection at the top of the list causes error #1484

Closed
1 task done
ajuvonen opened this issue Dec 29, 2024 · 1 comment
Closed
1 task done

Unseen selection at the top of the list causes error #1484

ajuvonen opened this issue Dec 29, 2024 · 1 comment
Labels

Comments

@ajuvonen
Copy link


Steps to Reproduce

Dependencies:

Running Node 22.11 on a Windows 11 machine and Git Bash

Steps:

  1. Have ncu installed globally
  2. Run ncu -i
  3. With the provided list, press up key once. Notice the cursor disappears.
  4. Press space bar
  5. Move cursor back down and de-select all items
  6. Press enter

Current Behavior

TypeError: Cannot read properties of undefined (reading 'replace')
at kX ([path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:450:2588)
at [path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:450:2835
at Array.forEach ()
at [path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:450:2774
at String.replace ()
at G2 ([path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:450:2745)
at Cw ([path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:545:597)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async yse ([path-to-node]\v22.11.0\node_modules\npm-check-updates\build\index.js:547:750)

Expected Behavior

Cursor should move to the end of the list when moving upwards from the start of the list. Upon completion, there should be no error but a notification that no dependencies were updated.

@raineorshine
Copy link
Owner

Hi, thanks for reporting!

Identified and fixed in v17.1.13.

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

No branches or pull requests

2 participants