fix(slack): handle bolt import for CJS/ESM compatibility#1208
fix(slack): handle bolt import for CJS/ESM compatibility#1208steipete merged 5 commits intoopenclaw:mainfrom
Conversation
acfac8c to
b265f53
Compare
|
Wait, how does this not explode on my machine? Wjat is your node version? |
|
Running Node v25.2.1. The CJS/ESM interop behavior just maybe sensitive to Node versions? 🤷♂️ I know, comment feels bot-ish, but I am not a bot, please don't ban me, hahaha. |
I will try with downlevel and report back, too. |
Going down to v24 all is good. But in doing that, it occurred to me that perhaps there was inconsistent libs in the dist/build causing this actually, but pnpm i/u reported all up to date/proper resolution, but I'll try to replicate with a clean install on v25 tomorrow. |
|
I run 25.3 |
So on 25.3 and 25.4 I still get this...even after nuking caches, etc (was hoping it was some odd lib version issue). I'll continue to try to investigate... [clawdbot] Skipping build; dist is fresh. 🦞 Clawdbot 2026.1.17-1 (39dfdcc) — I'll refactor your busywork like it owes me money. 21:25:13 (node:26813) [DEP0040] DeprecationWarning: The Starting with |
3560ab9 to
5f6115b
Compare
5f6115b to
cf04b0e
Compare
fix(slack): handle bolt import for CJS/ESM compatibility
Fixes #1209.
Summary
@slack/boltresolves to a CJS/ESM shape without named exports.App/HTTPReceiverfrom the default export or module namespace for compatibility.Root cause
Appconstructor as the default export (no named exports). DestructuringApp/HTTPReceiverfrom the namespace then fails andnew App()throws.Details
{ App, HTTPReceiver }), default module object, and default App class shapes.HTTPReceiverin Slack monitor tests.Tests
CI Notes
pnpm formatand Windowsgateway.sigtermare currently failing onmain(unrelated to this change).