полностью код скинь, где ошибка возникла
async function fetchProductList(url) {
const browser = await puppeteer.launch({
headless: false, // false: enables one to view the Chrome instance in action
defaultViewport: null, // (optional) useful only in non-headless mode
});
const page = await browser.newPage();
await page.goto(url, { waitUntil: 'networkidle2' }).then(() => {
const rs = page.content()
console.log(rs)
});
console.log('pidaras')
}