You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
@slack/web-api 8.1.0: CJS build requires ESM-only p-queue@9 and p-retry@8, ERR_REQUIRE_ESM on Node 20Â #2711
mkdir slack-esm-repro && cd slack-esm-repro npm init -y npm install @slack/web-api@8.1.0
Note: Node 20.19+ and 22.12+ mask this via require(esm). Disable it to get the behaviour of every earlier Node in the declared ">= 20" support range: node --no-experimental-require-module -e "require('@slack/web-api')"
Control, same command, same Node: npm install @slack/web-api@8.0.0 node --no-experimental-require-module -e "require('@slack/web-api')" -> loads fine
Expected Result
require('@slack/web-api') succeeds on every Node version in the package's declared engines.node: ">= 20" range, as it does on 8.0.0.
Actual Result
node_modules/@slack/web-api/dist/WebClient.js:45
const p_queue_1 = __importDefault(require("p-queue"));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/p-queue/dist/index.js
from node_modules/@slack/web-api/dist/WebClient.js not supported.
Instead change the require of index.js in .../WebClient.js to a dynamic import()
which is available in all CommonJS modules.
at Object. (.../WebClient.js:45:35) {
code: 'ERR_REQUIRE_ESM'
}
👋 Hey @ashwins01! Thanks for sharing this - we're looking into rolling these dependencies back now but want to recommend also updating to the activenode release when possible for more complete ESM support ongoing:
🔮 We published @slack/web-api@8.1.1 that reverts these dependencies to a supported release! Please do let us know if this still causes issue whenever of course!
Activity
zimeg commentedon Aug 27, 2026
👋 Hey @ashwins01! Thanks for sharing this - we're looking into rolling these dependencies back now but want to recommend also updating to the active
noderelease when possible for more complete ESM support ongoing:🔗 https://nodejs.org/en/about/previous-releases
fix: revert internal packages requiring esm loading for backward comp…
fix: revert internal packages requiring esm loading for backward comp…
fix: revert internal packages requiring esm loading for backward comp…
docs(deps): collapse dependabot ignore comments to one-liners
zimeg commentedon Aug 27, 2026
🔮 We published
@slack/web-api@8.1.1that reverts these dependencies to a supported release! Please do let us know if this still causes issue whenever of course!