Skip to content

@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

Closed

Description

@ashwins01

Package

@slack/web-api

SDK Version

@slack/web-api@8.1.0

Node.js Version

v20.20.2

Operating System

macOS 26.6

Steps to Reproduce

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'
}

Activity

  1. added
    bugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
    pkg:web-apiapplies to `@slack/web-api`
    pkg:webhookapplies to `@slack/webhook`
    dependenciesPull requests that update a dependency file
    and removed on Aug 27, 2026
  2. zimeg commented on Aug 27, 2026

    @zimeg
    Member

    👋 Hey @ashwins01! Thanks for sharing this - we're looking into rolling these dependencies back now but want to recommend also updating to the active node release when possible for more complete ESM support ongoing:

    🔗 https://nodejs.org/en/about/previous-releases

  3. added 4 commits that reference this issue on Aug 27, 2026
    6bd4e94
    e2aadfd
    3bd4240
    f57d723
  4. zimeg commented on Aug 27, 2026

    @zimeg
    Member

    🔮 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugM-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documenteddependenciesPull requests that update a dependency filepkg:web-apiapplies to `@slack/web-api`pkg:webhookapplies to `@slack/webhook`

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions