Claude Code Setup Doubt #206
Replies: 1 comment
-
|
i also face same situation.
`.claude/settings.json Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list ("Edit|Write"), or empty to match all. Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type": "command", "command": "echo Done"}]}]} Learn more: https://code.claude.com/docs/en/hooks`
`.claude/settings.json Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list ("Edit|Write"), or empty to match all. Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type": "command", "command": "echo Done"}]}]} Learn more: https://code.claude.com/docs/en/hooks Files with errors are skipped entirely, not just the invalid settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Settings Error
file/to/path
└ hooks
├ PostToolUse
│ └ 0
│ └ hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart
└ 0
└ hooks: Expected array, but received undefined
Hooks use a matcher + hooks array. The matcher is a string: a tool name ("Bash"), pipe-separated list ("Edit|Write"), or empty to match all.
Example: {"PostToolUse": [{"matcher": "Edit|Write", "hooks": [{"type": "command", "command": "echo Done"}]}]}
Learn more: https://code.claude.com/docs/en/hooks
Files with errors are skipped entirely, not just the invalid settings.
❯ 2. Continue without these settings
Screenshot:

Beta Was this translation helpful? Give feedback.
All reactions