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

Runtime error #22

Open
rivatove opened this issue Mar 3, 2024 · 2 comments
Open

Runtime error #22

rivatove opened this issue Mar 3, 2024 · 2 comments

Comments

@rivatove
Copy link

rivatove commented Mar 3, 2024

When running:
npx check-outdated --ignore-pre-releases --ignore-packages a,b,c --columns package,current,wanted,latest,changes

I get the following ouput:

11 outdated dependencies found:

/home/.npm/_npx/1ffde889918d975b/node_modules/check-outdated/helper/list.js:21
        return entries.map(([key, value]) => (typeof value === 'string' ? value : JSON.stringify(value, null, '  ')).replace(/^/gmu, `$&${key} `)).join('\n');
                                                                                                                     ^

TypeError: Cannot read properties of undefined (reading 'replace')
    at /home/.npm/_npx/1ffde889918d975b/node_modules/check-outdated/helper/list.js:21:111
    at Array.map (<anonymous>)
    at generateKeyValueList (/home/.npm/_npx/1ffde889918d975b/node_modules/check-outdated/helper/list.js:21:17)
    at checkOutdated (/home/.npm/_npx/1ffde889918d975b/node_modules/check-outdated/check-outdated.js:404:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /home/.npm/_npx/1ffde889918d975b/node_modules/check-outdated/check-outdated.js:339:22

Node.js v18.18.2

It used to work and broke only recently.

@jens-duttke
Copy link
Owner

jens-duttke commented Mar 3, 2024

Can you please share your package.json, or at least the dependency lists? And which npm version are you using?

@rivatove
Copy link
Author

rivatove commented Mar 4, 2024

Can you please share your package.json, or at least the dependency lists? And which npm version are you using?

I debugged further using --ignore-packages and the package causing the issue is @swc/cli.

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

2 participants