max-mapper / max-mapper/extract-zip

require() of ES Module /get-stream/source/index.js from /extract-zip/index.js not supported.

Open
#143 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
398
Forks
144
PR merge metrics
No merged PRs in 30d

Description

Hey, I am receiving the following error when working with @sparticuz/chromium, and it seems to come from extract-zip^2.0.1.

{
  "errorType": "Error",
  "errorMessage": "require() of ES Module /opt/node_modules/get-stream/source/index.js from /opt/node_modules/extract-zip/index.js not supported.\nInstead change the require of /opt/node_modules/get-stream/source/index.js in /opt/node_modules/extract-zip/index.js to a dynamic import() which is available in all CommonJS modules.",
  "trace": [
    "Error [ERR_REQUIRE_ESM]: require() of ES Module /opt/node_modules/get-stream/source/index.js from /opt/node_modules/extract-zip/index.js not supported.",
    "Instead change the require of /opt/node_modules/get-stream/source/index.js in /opt/node_modules/extract-zip/index.js to a dynamic import() which is available in all CommonJS modules.",
    "    at Object.<anonymous> (/opt/node_modules/extract-zip/index.js:4:19)"
  ]
}

Does that belong to the chromium or puppeteer repos or does that belong here?

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

Start with extract-zip/index.js at the reported require site and reproduce the failure using the dependency versions described in the issue, including @sparticuz/chromium. Check whether the incompatibility is actionable in extract-zip or belongs to a dependent project. Done means the ownership and a maintainer-confirmed resolution are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.