0

I'm trying to implement Playwright tests with lighthouse to get performance metrics. using library and using the sample code - https://github.com/abhinaba-ghosh/playwright-lighthouse. but I'm getting error, please refer attached image.

enter image description here

pbaranski
  • 22,778
  • 19
  • 100
  • 117
Sujith
  • 163
  • 1
  • 1
  • 7

1 Answers1

0

Try to change

const ReportGenerator = require('Lighthouse/report/generator/report-generator')

to

const ReportGenerator = require('Lighthouse/report/generator/report-generator').default

and see if it's work

Sora
  • 2,465
  • 18
  • 73
  • 146