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

Invalid arg type error when running the command #6

Open
garcipat opened this issue Mar 3, 2025 · 2 comments
Open

Invalid arg type error when running the command #6

garcipat opened this issue Mar 3, 2025 · 2 comments

Comments

@garcipat
Copy link

garcipat commented Mar 3, 2025

Hi

I installed it globally and when I try to run npx cspell-check-unused-words ./cspell.json in the root of my repo i receive this error:

node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:405:5)
    at validateString (node:internal/validators:162:11)
    at Object.join (node:path:429:7)
    at file:///C:/ProgramData/nvm/v18.19.1/node_modules/cspell-check-unused-words/dist/constants.js:3:26
    at ModuleJob.run (node:internal/modules/esm/module_job:195:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:336:24)
    at async loadESM (node:internal/process/esm_loader:34:7)
    at async handleMainPromise (node:internal/modules/run_main:106:12) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.19.1

Any ideas? the documentation does not give any more detaisl about how to pass arguments or how to run the help command that should explain the commands.

Tried npx cspell-check-unused-words --help but just the same error.

@Zamiell
Copy link
Collaborator

Zamiell commented Mar 3, 2025

can you provide a reprex

@Zamiell
Copy link
Collaborator

Zamiell commented Mar 3, 2025

furthermore, you can also try v1.5.0, which I just released.

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