Skip to content

TypeError: hookList is not iterable #2

Description

@thichmamtom
cc2codex on  main [!] is 📦 0.2.0 via ⬢ v22.16.0 
➜ npm exec cc2codex validate

✅ Validating Codex migration...

file:///Users/dnntung/Projects/cc2codex/src/validator.js:81
  for (const hook of hookList) {
                     ^

TypeError: hookList is not iterable
    at checkHookScriptsExist (file:///Users/dnntung/Projects/cc2codex/src/validator.js:81:22)
    at validate (file:///Users/dnntung/Projects/cc2codex/src/validator.js:19:18)
    at Command.<anonymous> (file:///Users/dnntung/Projects/cc2codex/bin/cc2codex.js:294:27)
    at Command.listener [as _actionHandler] (/Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:542:17)
    at /Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1502:14
    at Command._chainOrCall (/Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1386:12)
    at Command._parseCommand (/Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1501:27)
    at /Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1265:27
    at Command._chainOrCall (/Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1386:12)
    at Command._dispatchSubcommand (/Users/dnntung/Projects/cc2codex/node_modules/commander/lib/command.js:1261:25)

Node.js v22.16.0

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions