redpanda-data / redpanda-data/connect

Build fails on Node 20 with ESM errors

Open
#4,752 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
8.8k
Forks
969
Avg merge
1d 13h
Merged PRs (30d)
64

Description

After upgrading to Node 20, the build fails with:

ERR_REQUIRE_ESM: require() of ES Module not supported

Is there a workaround or planned fix?

Using npm 10.2.4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the build failure with Node 20 and npm 10.2.4, then trace the reported ERR_REQUIRE_ESM message to the relevant build entry point. Done means the build succeeds under Node 20 or the issue documents a confirmed workaround and its scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.