Nuxt 生成失败,自我未在 vue dist 文件中定义
我正准备从 Nuxt.js 2 项目部署我的第一个静态应用程序。
虽然静态路由生成得很好,但我的动态路由却不是。一旦我记得它们隐藏在我的下拉菜单中 - 呃 - 我创建了一个 /generate 页面,它使用 nuxt-link 组件呈现我的所有动态路由。我的假设是爬虫应该找到 /generate/index.vue 页面及其上的链接,并爬行它们。
事实并非如此。
然后我注意到 Sebastien Chopin 的评论提到在生成静态应用程序时应该启用 SSR。好的。所以我重新启用了 SSR,除了错误之外什么也没遇到。我已经弄清楚了几个,但最新的这个让我难住了。
一些谷歌搜索没有显示出相关的线索 - 或者至少我不认为它们是相关的 - 所以我需要“全球开发人员”团队的帮助。
这个错误是否表明 Vue 本身存在问题?我不在我的应用程序代码中的任何地方使用“self”……嗯?
干杯, 杰里米
I'm preparing to deploy my first Static app from a Nuxt.js 2 project.
While the static routes are generated fine, my dynamic routes are not. Once I remembered they were hidden in my dropdown menu - duhh - I created a /generate page which renders all my dynamic routes using the nuxt-link component. My assumption was that the crawler should find the /generate/index.vue page and thus the links on it, and crawl those.
It didn't.
Then I noticed a comment from Sebastien Chopin mentioning that SSR should be enabled when generating Static apps. Ok. So I re-enabled SSR and I've hit nothing but errors. A couple I've figured out but this latest one has got me stumped.
Some googling has not revealed a clue that appeared relevant - or at least I didn't recognise them as relevant - so I need the 'worldwide developers' team help.
Does this error suggest there's an issue in Vue itself? I don't use 'self' anywhere in my app code soooo... hmmm?
Cheers,
Jeremy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,它现在正在生成(已经有几个星期了,很忙!)...但是生成的页面没有输出内容,但我认为这是一个不同的问题。
我目前的配置是;
我会继续努力。
Well it's generating now (has been for a few weeks, been a busy time!)... however the generated pages are not outputting with content, but I think that's a different issue.
My configuration currently is;
I'll keep working on it.