Skip to content

docs: convert remaining code examples from CommonJS to ESM #2923

Open

Description

@zimeg

Summary

The quickstart guides and README were updated to use ESM imports in #2923. The remaining docs still use require() syntax and should be converted to import for consistency.

Files to update

English:

  • docs/english/concepts/authenticating-oauth.md
  • docs/english/concepts/custom-routes.md
  • docs/english/concepts/deferring-initialization.md
  • docs/english/concepts/error-handling.md
  • docs/english/concepts/logging.md
  • docs/english/concepts/message-listening.md
  • docs/english/concepts/receiver.md
  • docs/english/concepts/socket-mode.md
  • docs/english/concepts/token-rotation.md
  • docs/english/deployments/aws-lambda.md
  • docs/english/tutorials/code-assistant.md

Japanese:

  • docs/japanese/concepts/authenticating-oauth.md
  • docs/japanese/concepts/custom-routes.md
  • docs/japanese/concepts/deferring-initialization.md
  • docs/japanese/concepts/error-handling.md
  • docs/japanese/concepts/logging.md
  • docs/japanese/concepts/message-listening.md
  • docs/japanese/concepts/socket-mode.md
  • docs/japanese/deployments/aws-lambda.md

Out of scope

  • docs/english/legacy/steps-from-apps.md and docs/japanese/legacy/steps-from-apps.md — deprecated, no update needed.

Notes

  • Most files are a straightforward require → import swap.
  • Lambda deployment docs also use module.exports which should become export const handler.

Activity

  1. added
    docsM-T: Documentation work only
    enhancementM-T: A feature request for new functionality
    and removed on May 13, 2026
  2. zimeg commented on May 13, 2026

    @zimeg
    MemberAuthor

    🧪 I do think this is a good first issue! Just without a label 😉 Hoping to test as part of this change in exploration of earlier comments of #2565!

    🔬 The AWS Lambda note above might relate to #2761 as well.

  3. github-actions commented on Jun 15, 2026

    @github-actions
    Contributor

    👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

  4. added
    auto-triage-skipPrevent this issue from being closed due to lack of activity
    and removed on Jun 15, 2026
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

    auto-triage-skipPrevent this issue from being closed due to lack of activitydocsM-T: Documentation work onlyenhancementM-T: A feature request for new functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions