【问题标题】:Nuxt Hanging during generate scriptNuxt 在生成脚本期间挂起
【发布时间】:2018-12-18 18:20:59
【问题描述】:

当我尝试使用 nuxt 运行生成脚本时,我的节点进程最终挂起。

Nuxt 完成了生成步骤,但我的控制台挂起并显示“生成错误摘要”,然后什么也没有。

nuxt:render Rendering url / +5s
nuxt: Call generate:done hooks (1) +13ms
nuxt:generate HTML Files generated in 46.1s +14ms

Generate errors summary:

以前有人遇到过这种情况吗?

包.json:

"dependencies": {
    "contentful": "^6.1.1",
    "contentful-management": "^5.1.4",
    "nuxt": "^1.4.0",
    "vue-markdown": "^2.2.4"
 },
"devDependencies": {
    "babel-eslint": "^7.1.1",
    "eslint": "^3.15.0",
    "eslint-config-standard": "^6.2.1",
    "eslint-loader": "^1.6.1",
    "eslint-plugin-html": "^2.0.0",
    "eslint-plugin-promise": "^3.4.1",
    "eslint-plugin-standard": "^2.0.1"
 }

【问题讨论】:

  • 不知道nuxt版本或看代码很难帮到你
  • 添加了版本信息,不知道问题出在哪里,所以不确定 sn-p 提供的最佳代码是什么。尝试在 5 分钟内模仿内容丰富的博客。
  • dev dep 看起来过时了,而且 46.1 秒的构建时间很长,尝试全新的安装/项目并从那里向后工作。
  • 看起来问题出在我的 CSS 中。我包含了很多 css 并删除了它,然后 nuxt 就直接拉上了拉链。下一个问题是如何解决这个问题,但至少我已经解决了这个问题。谢谢各位!

标签: vue.js nuxt.js contentful


【解决方案1】:

没有 CSS 加载器,添加了一个,一切正常。

来自documentation

Nuxt.js will automatically guess the file type by it's extension and use the 
appropriate pre-processor loader for webpack. You will still need to install 
the required loader if you need to use them.

【讨论】:

    猜你喜欢
    • 2010-11-01
    • 1970-01-01
    • 1970-01-01
    • 2011-04-05
    • 2020-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多