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'
854 Views Asked by Sujith At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Angular Show All When No Filter Is Supplied
- Why does a function show up as not defined
- I count the time the user takes to solve my quiz using Javascript but I want the same time displayed on another page
- Set "More" "Less" font size
- Using pagination on a table in AngularJS
- How to sort these using Javascript or Jquery Most effectively
- how to fill out the table with next values in array with one button
- State with different subviews
- Ajax jQuery firing multiple time display event for the same result
- Getting and passing MVC Model data to AngularJS controller
- Disable variable in eval
- javascript nested loops waiting for user input
- .hover() seems to overwrite .click()
- How to sort a multi-dimensional array by the second array in descending order?
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
Related Questions in PLAYWRIGHT
- Playwright + CodeceptJS - Unable to find element by Xpath
- How to capture dynamic content from element inside an iFrame?
- Creating a local PDF file in Azure Function Linux consumption plan with Microsoft Playwright
- Heroku cannot find Playwright files
- What is a good way to make screenshot tests with Playwright?
- Add cookies in playwright test
- How to select inner text of cousin using puppeteer
- How to open the new tab using Playwright (ex. click the button to open the new section in a new tab)
- playwright-python advanced setup
- Using Playwright for Python, how do I select (or find) an element?
- Cant require playwright
- Get current page url with Playwright Automation tool?
- Can I use await page.click(element) to click on a very specific part of that element using playwright
- Using Playwright for Python, how do I select an option from a drop down list?
- switch tabs in playwright test
Related Questions in LIGHTHOUSE
- 401 error when try to connect to Lighthouse API
- Lighthouse report says my start_url isnt cached
- Hello World Angular CLI as Measured by Lighthouse(Why slow and enormous?)
- Lighthouse incorrectly states I have not registered a Service Worker
- Generating HTML report in gulp using lighthouse
- What is the scoring formula for Lighthouse accessibility audit?
- How to correct "preload key requests" performance problem on lighthouse with vue-cli and vue.config.js
- Accessibility error with transparent text before scrolling
- Lighthouse "Ensure text remains visible during webfont load " for local files
- Can I rely on Google Lighthouse reports (especially for mobile sites)?
- Google Developers Network tab purple line
- Lighthouse & pagespeed insights performance score is inconsistent
- Increase in third party libraries
- Is 80 a strict Lighthouse scores for publishing TWA apps?
- How to access Lighthouse Panel data in Chrome Dev-Tools?
Related Questions in PLAYWRIGHT-TEST
- When global login fail report shows no test results
- How to listen to playwright actions
- how to make a test.step be a pass - playwright
- How to pass an external/custom parameter to a test script in PLAYWRIGHT and get it on a custom reporter generated report
- Playwright: Hide skipped tests in reporter
- How to take a screenshot of a loading spinner in playwright(ts / js)?
- Could I run tests in a dependency project by tag, as I run main projects in Playwright?
- Playwright: Any way to take data from different config.json for testcases instead of adding all env in json
- Playwright - What is the meaning of page.locator('article')
- How to wait for request response but ignore if it exceed a certain time
- Playwright - I am unable to move to the next page
- How to get all errors and assert them (or add them into report) on the page instead of getting first error and stopping
- Playwright: Test times out waiting for an element to be visible even though the elements before it were found
- Playwright - access isMobile in browserContext
- How do you add a custom property to the Playwright config file
Related Questions in PLAYWRIGHT-LIGHTHOUSE
- 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'
- 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
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)
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?

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