question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to prerender all routes!

See original GitHub issue

I’m getting this error randomly during my deploy build, I’m not sure why it’s doing this and can’t reproduce locally. And if I rebuild it works.

The main problem is that this is not stopping the build, it seems to exit with 0 and lets the build continue.

[prerender-spa-plugin] Unable to prerender all routes!
(node:2685) UnhandledPromiseRejectionWarning: Error: Navigation Timeout Exceeded: 30000ms exceeded
    at Promise.then (/tmp/build_ec0aa5ea47759615bf77e08801798d3c/node_modules/puppeteer/lib/NavigatorWatcher.js:73:21)
    at <anonymous>
(node:2685) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2685) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sohailalam2commented, Aug 5, 2018

Well, @Tribex this is solved for me… apparently one of the pages had an infinite loop which was causing the rendering to fail. Now its resolved. Thanks

1reaction
sohailalam2commented, Jul 31, 2018

I am also facing the same issue. My stack is build with VueJs and is up in AWS. I have a CICD system in place which does the build and its currently throwing this error -

I have tried several combination of configurations and none of them have worked so far.

new PrerenderSPAPlugin({
      staticDir: config.build.assetsRoot,
      routes: config.build.prerenderRoutes,
      renderer: new PrerenderSPAPlugin.PuppeteerRenderer({
        timeout: 60000,
        renderAfterTime: 10000,
        maxConcurrentRoutes: 1
      })
    }),
(node:137) UnhandledPromiseRejectionWarning: Error: Navigation Timeout Exceeded: 30000ms exceeded
    at Promise.then (/codebuild/output/src455438129/src/node_modules/puppeteer/lib/NavigatorWatcher.js:73:21)
    at <anonymous>
(node:137) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:137) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@Tribex any idea how we can mitigate this issue?

Strangely enough the error still says Exceeded: 30000ms although I have used timeout: 60000

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to prerender all routes! · Issue #242 - GitHub
Unable to prerender all routes ! I'm using v3.3.0 with the latest PR from Tribex. I'm watching the routes come up in headless...
Read more >
How to fix [prerender-spa-plugin] Unable to prerender all routes
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not...
Read more >
ERROR [prerender-spa-plugin] - Unable to prerender all routes
I have encountered a problem in implementing the prerender-spa-plugin with Laravel 5.7 and Vue 2.6: Error: Child compilation failed: Entry ...
Read more >
prerender-spa-plugin - Bountysource
[prerender-spa-plugin] Unable to prerender all routes! (node:2685) UnhandledPromiseRejectionWarning: Error: Navigation Timeout Exceeded: 30000ms exceeded at ...
Read more >
How to prerender a Vuejs 3 application with Vue Cli? - Get Help
After that I try prerender-spa-plugin but I have an error wheh I make a npm run build : [prerender-spa-plugin] Unable to prerender all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found