Skip to content

TypeError [ERR_INVALID_ARG_TYPE] when using cca #208

@remmiculous

Description

@remmiculous
  • TypeError when using cca on Windows machine
  • Below is the error message

node:path:682
    validateString(path, 'path');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at dirname (node:path:682:5)
    at C:\Users\User\AppData\Roaming\npm\node_modules\create-cosmos-app\dist\git-cca-template.js:173:95
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async cli (C:\Users\User\AppData\Roaming\npm\node_modules\create-cosmos-app\dist\cli.js:9:5)
    at async C:\Users\User\AppData\Roaming\npm\node_modules\create-cosmos-app\dist\create-cosmos-app.js:52:9 {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v20.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions