D
Deno

help

Importing `puppeteer-cluster` from esm.sh causes `does not provide an export named 'default'` error

MVDMax van der Velde8/3/2023
When importing https://esm.sh/puppeteer-cluster@0.23.0 I get the following error:
error: Uncaught SyntaxError: The requested module '/v130/y18n@5.0.8/denonext/y18n.mjs' does not provide an export named 'default'
at <anonymous> (https://esm.sh/v130/yargs@17.7.1/denonext/helpers.js:4:1997)
error: Uncaught SyntaxError: The requested module '/v130/y18n@5.0.8/denonext/y18n.mjs' does not provide an export named 'default'
at <anonymous> (https://esm.sh/v130/yargs@17.7.1/denonext/helpers.js:4:1997)
I'm not sure how to reslove this, anyone have an idea? My code looks something like this:
import { Cluster } from "https://esm.sh/puppeteer-cluster@0.23.0";

const cluster = await Cluster.launch({
concurrency: Cluster.CONCURRENCY_PAGE,
maxConcurrency: 10,
});

// etc...
import { Cluster } from "https://esm.sh/puppeteer-cluster@0.23.0";

const cluster = await Cluster.launch({
concurrency: Cluster.CONCURRENCY_PAGE,
maxConcurrency: 10,
});

// etc...

Looking for more? Join the community!