Error : [prerender-spa-plugin] Unable to prerender all routes!
See original GitHub issueI 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
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:
- Created 5 years ago
- Reactions:2
- Comments:10
Top GitHub Comments
check out here https://segmentfault.com/q/1010000016570899
headless: true
It helps me! Reference: https://juejin.cn/post/6844904178326700045#comment “在mac下设置了 headless: false 导致提示 Unable to prerender all routes! google 了一堆,告诉我说不能使用路由懒加载,其实造成这个报错的原因有很多,我是设置了headless: true 就好了 !”