fuite: Get an error when trying to run

Try to run npx fuite <https://example.com>

the error: cb.apply is not a function

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (9 by maintainers)

Most upvoted comments

Hello, I reproduced that problem today. Then I discover I was using Node 12. So I use Node 16. Then it worked. (i leave this trick for posterity 😘 )

That’s interesting. I wonder if I can make the default scenario wait for service worker installations. Or detect splash screens somehow? (Not sure this is possible.)

Alternatively, you can use the --setup option to make it wait for the splash screen to disappear. For example, you can have it wait for some condition to be true:

export async function setup (page) {
  await page.waitForSelector('#elementThatShouldBeVisible')
}

Yes - this solves the problem, thank you for your patience in solving the issue.