max-mapper / max-mapper/extract-zip
require() of ES Module /get-stream/source/index.js from /extract-zip/index.js not supported.
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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