Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xonaman opened this issue Aug 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@xonaman
Copy link

xonaman commented Aug 31, 2024

Hey, I am receiving the following error when working with chromium.

{
  "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)"
  ]
}

I don't know if that comes from chromium or puppeteer.

I was using @sparticuz/chromium^122.0.0 and puppeteer-core^22.5.0 which worked perfectly fine until now. Probably some dependency, get-stream or extract-zip had an update.

I tried upgrading to @sparticuz/chromium^127.0.0 and puppeteer-core^23.2.1 but got the exact same error.

Can someone please point me in the right direction?

@xonaman xonaman added the bug Something isn't working label Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant