Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lighthouse: Unable to run generate report on localhost

As the title says I'm trying to generate a report for my nuxt app served locally. If I generate the report via DevTools it takes an extremely long time and gives me exceptionally bad scoring(compared to generating the report on the same site deployed).

If I try using the lighthouse extension the "Generate report" button is disabled.

Am I going about this wrong or is there any way to locally generate valid reports?

Thanks in advance.

Images:

chrome extension

devtools

like image 376
leetajz Avatar asked Sep 14 '25 09:09

leetajz


1 Answers

Is your application PWA? Service workers are causing this. Try unchecking clear storage / clear cache option to the right of the window under the lighthouse tab, sometimes collapsed under a settings icon. If it's still not generating a report, do the same in an incognito window.

The issue:

enter image description here

The option:

enter image description here

enter image description here

And it works:

enter image description here

like image 160
Ashique razak Avatar answered Sep 17 '25 08:09

Ashique razak