LuXDAmore/nuxt-prune-html

Node GC crash when using nuxt:generate

sp0ken opened this issue ยท 4 comments

Describe the bug
When using the generate command of Nuxt (without static mode set) the generation fails with a Garbage Collection failure.

To Reproduce

  • Setup a Nuxt Project with the nuxt-prune-html module
  • Add a few pages
  • Generate the website using yarn nuxt generate
    Expected behavior
    Generation is successful and pruning is applied

Screenshots

Additional context
I've tested it on my machine and when using Netlify build system.
Node version: 15.14.0

Hello @sp0ken ๐Ÿ˜„

This seems a memory leak.. I'm using this module in site with more than one millions urls and there are no memory leaks.

I don't think this is related to the module ๐Ÿค”

Could you reproduce the bug?

Hi @LuXDAmore,

I'll try to provide a reproductible scenario

Well it seems to be a known issue with Nuxt 2.14+: nuxt/nuxt#7855
I've tried to remove as many modules as possible but I'm still getting an Out of memory error.

I'll wait for an upstream fix try again this module again.

Ok, thank You for sharing @sp0ken ๐Ÿ˜„

So, I'm gonna close this issue ๐ŸŒˆ