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.
Asked
Active
Viewed 694 times
0
-
1do you have the sample repository where the issue can be reproduced? – Raju Jul 19 '22 at 19:54
1 Answers
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