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.

Error : [prerender-spa-plugin] Unable to prerender all routes!

See original GitHub issue

I have develop the project using Yarn.

npm Version: 6.5.0 yarn Version: 1.12.3 vue version: 3.2.1

Here is the Error: D:\Projects\Latest\taxslips>npm run build

taxslips@0.1.0 build D:\Projects\Latest\taxslips vue-cli-service build Building for production…[prerender-spa-plugin] You appear to be using the v 2 argument-based configuration options. It’s recommended that you migrate to the clearer object-based configuration system. Check the documentation for more information. \ Building for production…[prerender-spa-plugin] Unable to prerender all rout es! ERROR Failed to compile with 1 errors 11:40:15 AM error [prerender-spa-plugin] Unable to prerender all routes! ERROR Build failed with errors. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! taxslips@0.1.0 build: vue-cli-service build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the taxslips@0.1.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Saad\AppData\Roaming\npm-cache_logs\2018-12-21T06_40_15_9 71Z-debug.log

Here is the file attached 2018-12-21T06_40_15_9 71Z-debug.log 2018-12-21T06_40_15_971Z-debug.log

yarn-error.log

Prrerender-spa-plugin was working before without any error but now giving errors after again running

yarn build

But now showing the errors. Can please anyone help?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

11reactions
alvaazcommented, Oct 1, 2019
3reactions
SageSanyuecommented, Mar 29, 2021

headless: true It helps me! Reference: https://juejin.cn/post/6844904178326700045#comment “在mac下设置了 headless: false 导致提示 Unable to prerender all routes! google 了一堆,告诉我说不能使用路由懒加载,其实造成这个报错的原因有很多,我是设置了headless: true 就好了 !”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to prerender all routes! · Issue #242 - GitHub
I'm watching the routes come up in headless Chromium, fully load, with no errors in the JS console. Here's my config: ` const...
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
ok I fixed the problem by rendering less pages. It seems there is a problem with a poor connection, which in my case...
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 >
prerender-spa-plugin - Bountysource
[prerender-spa-plugin] Unable to prerender all routes! (node:2685) UnhandledPromiseRejectionWarning: Error: Navigation Timeout Exceeded: 30000ms exceeded at ...
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