Skip to content

CF9002: The "paths[0]" argument must be of type string. Received null #3

Description

@gromdron

WSL Ubuntu 24.04, chef установился без проблем. Первая команда и сразу ошибка.

$ chef create vendor.test.bad

╭ Internal Error ──────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                      │
│   CF9002: The "paths[0]" argument must be of type string. Received null                                              │
│                                                                                                                      │
│   Stack trace:                                                                                                       │
│   at Module.resolve (node:path:1272:7)                                                                               │
│   at Function.findUpExistingDirectory                                                                                │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:364:39)                                                         │
│   at Function.findUpFile                                                                                             │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:380:45)                                                         │
│   at PackageCreator.#detectTypeScript                                                                                │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:11532:37)                                                       │
│   at PackageCreator.create                                                                                           │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:11497:53)                                                       │
│   at Command.<anonymous>                                                                                             │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:11642:36)                                                       │
│   at async Command.parseAsync (/<node from nvm 22.22.0>/@bitrix/chef/node_modul                                      │
│   es/commander/lib/command.js:1122:5)                                                                                │
│   at async Command.<anonymous>                                                                                       │
│   (/<node from nvm 22.22.0>/@bitrix/chef/dist/cli.js:15559:5)                                                        │
│   at async Command.parseAsync (/<node from nvm 22.22.0>/@bitrix/chef/node_modul                                      │
│   es/commander/lib/command.js:1122:5)                                                                                │
│                                                                                                                      │
│   chef     1.8.3                                                                                                     │
│   node     v22.22.0                                                                                                  │
│   platform linux x64                                                                                                 │
│                                                                                                                      │
│   If this is unexpected, please report it:                                                                           │
│   https://github.com/bitrix-tools/chef/issues                                                                        │
│                                                                                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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