Hi, I am trying to add https://github.com/apify/got-scraping, but it's ESM only.
I tried
let gotScraping;
async function fetchWithGotScraping(url) {
gotScraping ??= (await import('got-scraping')).gotScraping;
return gotScraping.get(url);
}
But it's not working. Im just getting Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in
Any ideas how?
Thanks