Lighthouse report issue

Divy_tatva
Shopify Partner
25 1 4

Hello 

 

I have generated lighthouse CLI report for my Shopify CLI 3.0 app and it's showing this error.

Getting a new page...
Getting password cookie...
Getting preview cookie...
Running Lighthouse 3 time(s) on https://***/?_fd=0&pb=0
Run #1...done.
Run #2...done.
Run #3...done.
Getting a new page...
Getting password cookie...
TimeoutError: waiting for selector `form[action*=password] input[type="password"]` failed: timeout 30000ms exceeded
    at new WaitTask (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:509:34)
    at DOMWorld.waitForSelectorInPage (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:420:26)
    at Object.internalHandler.waitFor (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:31:77)
    at DOMWorld.waitForSelector (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:313:29)
    at Frame.waitForSelector (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:841:51)
    at Page.waitForSelector (/.node/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2238:33)
    at module.exports (/github/workspace/setPreviewCookies.js:9:16)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async PuppeteerManager.invokePuppeteerScriptForUrl (/.node/lib/node_modules/@lhci/cli/src/collect/puppeteer-manager.js:108:5)

    at async Object.runCommand (/.node/lib/node_modules/@lhci/cli/src/collect/collect.js:240:7)

 

I am using Dawn 2.0 theme that shopify provided bydefault.

Replies 2 (2)
Divy_tatva
Shopify Partner
25 1 4

Is there any way to increase time?

Adnan333
Shopify Partner
1 0 0

Hello @Divy_tatva , I'm facing a similar issue. I have a password-protected development store, and I've referred to the Shopify Lighthouse-CI documentation and followed the instructions. However, I'm still encountering the same error in the logs. Were you able to resolve this issue?