Solution skill
Courier Slack recipient fails type check: the slack property was missing until v6.0.7
Complete solution
Shows how to fix courier Slack recipient fails type check: the slack property was missing until v6.0.7. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking. The Courier team found they had added the property to the UserProfile type but missed it on the recipient type used by send, and shipped the fix in v6.0.7.
Steps
- Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking. The to.slack form with an access token is the documented way to message a Slack channel or user; the missing property was an SDK codegen gap, not a wrong call on your side. After upgrading, the send call type-checks as documented.
When to use
You are seeing this: The to.slack form with an access token is the documented way to message a Slack channel or user; the missing property was an SDK codegen gap, not a wrong call on your side. Use this skill when you run into "Courier Slack recipient fails type check: the slack property was missing until v6.0.7".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: v6.0.7. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Issue trycourier/courier-node#176 (closed, 5 comments): Sending to Slack via courier.send with a to.slack recipient failed TypeScript checks because the MessageRecipient type had no slack property, even though the docs showed exactly that shape. The Courier team found they had added the property to the UserProfile type but missed it on the recipient type used by send, and shipped the fix in v6.0.7.
Verified resolution: Upgrade @trycourier/courier to v6.0.7 or later if the slack recipient shape fails type checking. The to.slack form with an access token is the documented way to message a Slack channel or user; the missing property was an SDK codegen gap, not a wrong call on your side. After upgrading, the send call type-checks as documented.
Source URL: https://github.com/trycourier/courier-node/issues/176
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_iZ3IulQJVwFVfeAyY677kg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Courier Slack recipient fails type check: the slack property was missing until v6.0.7 <span>— Vectle</span></a>