Nuxt.js: nuxt generate stalls on Generating pages

Created on 16 Apr 2019  路  9Comments  路  Source: nuxt/nuxt.js

Version

2.6.2 and 2.6.0 and later

Reproduction link

sorry I don't have a repo link

Steps to reproduce

With version 2.5.1 when I run nuxt generate with around 500 routes it finishes in about 21 minutes.

Upgrading to nuxt 2.6.2 with everything else the same nuxt generate gets stuck at Generating pages. My CI job terminates at 2hrs, it's possible the job might finish, but I don't know, that's a big jump from 21minutes in v2.5.1.

What is expected ?

nuxt generate to finish in a reasonable time/not hang

What is actually happening?

nuxt generate is either taking over 4 times as long or getting stuck and never finishing

This bug report is available on Nuxt community (#c9061)
bug-report stale

Most helpful comment

I encountered this problem, too. Unfortunately, I also don't have a repo that I can readily share. :/

When nuxt generate hangs I have to kill (9) the process. I'm on node v8.15.0

Like with @andrewharvey, switching to 2.5.1 worked.

I also looked into where it seemed to be dying with @Youdaman's input in mind and I found a sloppy query in a work-in-progress page that was pulling down unnecessary data. Fixing that made the problem go away. However, It does seem like something regressed after 2.5.1.

All 9 comments

might be related to #5324 and similar?

I'm using node v10 LTS

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

I'm still able to reproduce this issue with the latest release 2.6.3. Fixing to 2.5.1 it works.

hard to tell w/o a repo

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as pending will not be automatically marked as stale.

For anyone else that comes across this, I had a similar issue where a previous version of nuxt generated numerous routes fine, but after an upgrade to the latest it would hang.

The problem seemed to be that I was fetching a big chunk of data via axios in the asyncData section of each page, and so instead I moved my data to a json file that I included by way of a module instead and that fixed the issue for me.

I encountered this problem, too. Unfortunately, I also don't have a repo that I can readily share. :/

When nuxt generate hangs I have to kill (9) the process. I'm on node v8.15.0

Like with @andrewharvey, switching to 2.5.1 worked.

I also looked into where it seemed to be dying with @Youdaman's input in mind and I found a sloppy query in a work-in-progress page that was pulling down unnecessary data. Fixing that made the problem go away. However, It does seem like something regressed after 2.5.1.

I wanted to highlight this issue for me, not sure if it has been solved, but it happened to me when i upgraded from 2.13 -> 2.14

"nuxt generate is either taking over 4 times as long or getting stuck and never finishing"

This is with the new nuxt generate command but happens for me on when target is static or not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikekidder picture mikekidder  路  3Comments

vadimsg picture vadimsg  路  3Comments

danieloprado picture danieloprado  路  3Comments

vadimsg picture vadimsg  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments