如何解决使用预渲染 cli 时,终端给出 TypeError: Cannot read property 'endsWith' of undefined
我一直在尝试在我的 Vue 应用程序 (Vue 3) 中使用 cli 来实现这个插件
vue add prerender-spa
。完成 cli 后,我收到此错误。
� Invoking generator for Vue-cli-plugin-prerender-spa...
⚓ Running completion hooks...
ERROR TypeError: Cannot read property 'endsWith' of undefined
TypeError: Cannot read property 'endsWith' of undefined
at C:\Users\hp\Documents\WebDev\projects\VueAndFirebase\learnvue\Myprerender-attempt\dojo-blog\node_modules\vue-cli-plugin-prerender-spa\generator.js:22:42
at runGenerator (C:\Users\hp\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:132:13)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async invoke (C:\Users\hp\AppData\Roaming\npm\node_modules\@vue\cli\lib\invoke.js:92:3)
可能是什么问题,或者我应该放弃这种预渲染并专注于 SSR(Nuxt.js)。尽管该应用程序很小,而且根据我的发现,SSR 还是过大了。这让我很头疼。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。