vue提示[prerender-spa-plugin] Unable to prerender all routes!?

需求:接了个单,金主要做网站seo,把vue变成html那样显示,使搜索引擎收录页面内容。
vue-cli版本:
vue提示[prerender-spa-plugin] Unable to prerender all routes!?

运行 yarn build 提示:

vue提示[prerender-spa-plugin] Unable to prerender all routes!?

yarn run v1.22.19

$ vue-cli-service build --mode production

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

npm run build
vue提示[prerender-spa-plugin] Unable to prerender all routes!?

 ERROR  Failed to compile with 1 error                                                                                                                                                                                                                                                                                                                                                                                   21:30:29

error

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

尝试多次运行都失败了


回答:

配置一下navigationOptions.timeout

或者换用prerender-spa-plugin-next试试

以上是 vue提示[prerender-spa-plugin] Unable to prerender all routes!? 的全部内容, 来源链接: utcz.com/p/932861.html

回到顶部