Search code examples
vue.jsnuxt.jscontentful

Nuxt Hanging during generate script


When I try to run the generate script with nuxt my node process ends up hanging.

Nuxt goes through the generate step, but hangs with my console saying "Generate errors summary" and then nothing.

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

Generate errors summary:

Has anyone run into this before?

Package.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"
 }

Solution

  • Didn't have a CSS loader, added one and everything works.

    From the 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.