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.
Playwright lighthouse integration - Error: Cannot find module 'lighthouse/report/generator/report-generator'
855 views Asked by Sujith At
1
There are 1 answers
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in PLAYWRIGHT
- Playwright JS: Getting an error when debugging using line numbers
- Trouble generating PDFs with Playwright in Docker container
- Automating a user sign in to scrape data after logging in with Playwright
- Playwright trace getting an HTTP 500 from the service worker
- Docker repository does not have a release file for apt-get update on jammy release
- Slow performance when testing non-local IP services with Playwright
- I am having problem scraping the website, my script extracts data upto aria rowindex 29 while I need to extract upto aria rowindex 2509
- Trouble uploading with playwright
- Playwright - Firefox tests time out, but Chromium tests don't
- I want to capture the full page screenshot from figma design and validate that screen shot with actual static site
- Playwright Codegen in webview
- I am getting browser install failed error while running playwright scripts
- Playwright how to disable global teardown if any of the tests fail?
- Kerberos Authentication for an API
- Playwright checking the text of a locator and replacing values
Related Questions in LIGHTHOUSE
- Why does Dynamic and Suspense Make Lighthouse Scores Worse?
- Why is TBT on PSI so different from my local machine?
- Lighthouse performance Largest Contentful Paint element
- React.lazy doesn't improve lighthouse or PageSpeed Insights score. Is it a problem actually?
- What information does 'timing.entries' section gives in Lighthouse report?
- Is there any alternative to cleanup function of useEffect?
- Nuxt Speedkit breaks Lighthouse Chrome extension
- how can i fix Largest contentful paint (lcp) issue for mobile
- How to further mitigate bad web vitals LCP results?
- Element hide and show causing the Largest Contentful Paint 8000ms
- Lighthouse reduce unused javaScript
- Dzava Lighthouse index.js: not found using laravel
- Lighthouse PHP : Return type depending on guard
- Lighthouse playwrite :: TypeError: Failed to fetch browser webSocket URL from http://127.0.0.1:9222/json/version: fetch failed
- lighthouse Playwright- Instead change the require of index.js, to a dynamic import() which is available in all CommonJS modules
Related Questions in PLAYWRIGHT-TEST
- Playwright - test runs infinite if assertion fails
- how to log request object in playwright API testing
- How to use custom Playwright Test Page fixture from separate repository with Typescript?
- Playwright is not generating videos when we create our own context
- Playwright recording test in TS instead of JS
- Manual trigger button "Run workflow" is not showing up in GitHub Actions
- How to integrate playwright and perfecto to run the test in perfecto cloud
- Playwright /Typescript: Unable to retrieve the Cell data from table
- How to write playwright test cases for re-orderable list ? Playwright mouse.move not working while trying to reorder divs
- Playwright , Failure in After hook , fails test
- How can I clean browser session between executions in playwright?
- Why are my playwright tests sometimes successful and sometimes not?
- How to handle an late text in playwright
- Setup for Playwright Test Auth State to Bypass Setup Dependency
- Error: No tests found. You may need to escape symbols like "$" or "*" and quote the arguments
Related Questions in PLAYWRIGHT-LIGHTHOUSE
- lighthouse Playwright- Instead change the require of index.js, to a dynamic import() which is available in all CommonJS modules
- How do you target desktop mode running Lighthouse in a pipeline
- How to implemented properly google playwright-lighthouse with playwright framework with POM and Fixtures
- PlayAudit function call is closing the browser/page automatically after first Lighthouse analysis
- Playwright Lighthouse integration with TS: Error [ERR_REQUIRE_ESM]: require()
- Playwright lighthouse integration - Error: Cannot find module 'lighthouse/report/generator/report-generator'
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Try to change
const ReportGenerator = require('Lighthouse/report/generator/report-generator')to
const ReportGenerator = require('Lighthouse/report/generator/report-generator').defaultand see if it's work