prerenderer icon indicating copy to clipboard operation
prerenderer copied to clipboard

Session with given id not found

Open a0s opened this issue 1 year ago • 0 comments

Lastly i have random error inside gitlab pipeline. Restarting does help sometimes, sometimes doesn't..

rendering chunks...
[plugin:Prerender Plugin] [plugin Prerender Plugin] Unable to prerender all routes!
.....
error during build:
RollupError: [Prerender Plugin] [plugin Prerender Plugin] Protocol error (Target.createTarget): Session with given id not found.
    at getRollupError (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
    at error (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
    at Object.error (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:19589:20)
    at Object.<anonymous> (/app/node_modules/@prerenderer/rollup-plugin/dist/RollupPrerenderPlugin.js:140:34)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/@prerenderer/rollup-plugin/dist/RollupPrerenderPlugin.js:29:65)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processImmediate (node:internal/timers:449:9)

Another variant:

RollupError: [Prerender Plugin] [plugin Prerender Plugin] Protocol error: Connection closed. Most likely the page has been closed.
    at getRollupError (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
    at error (file:///app/node_modules/rollup/dist/es/shared/parseAst.js:392:42)
    at Object.error (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:19589:20)
    at Object.<anonymous> (/app/node_modules/@prerenderer/rollup-plugin/dist/RollupPrerenderPlugin.js:140:34)
    at Generator.throw (<anonymous>)
    at rejected (/app/node_modules/@prerenderer/rollup-plugin/dist/RollupPrerenderPlugin.js:29:65)

I found similar errors in other repos: https://github.com/cypress-io/cypress/issues/28148 https://github.com/DevExpress/testcafe/issues/7865

Versions:

"@prerenderer/renderer-puppeteer@npm:1.2.4"
"@prerenderer/rollup-plugin@npm:0.3.12"

UPD: I rechecked gitlab logs and found some errors like

src/router/index.ts(12,25): error TS7006: Parameter 'to' implicitly has an 'any' type.
src/router/index.ts(12,29): error TS7006: Parameter '_from' implicitly has an 'any' type.
src/router/index.ts(26,24): error TS7006: Parameter 'to' implicitly has an 'any' type.
src/router/index.ts(26,28): error TS7006: Parameter '_from' implicitly has an 'any' type.
src/router/index.ts(12,25): error TS7006: Parameter 'to' implicitly has an 'any' type.
src/router/index.ts(12,29): error TS7006: Parameter '_from' implicitly has an 'any' type.
src/router/index.ts(26,24): error TS7006: Parameter 'to' implicitly has an 'any' type.
src/router/index.ts(26,28): error TS7006: Parameter '_from' implicitly has an 'any' type.
[plugin:Prerender Plugin] [plugin Prerender Plugin] Unable to prerender all routes!
x Build failed in 26.76s

After i fix it, it come back to normal work.

a0s avatar May 28 '24 09:05 a0s