nuxt-ui-pro / docs

A documentation template made with Nuxt UI Pro.
https://docs-template.nuxt.dev
134 stars 38 forks source link

Out of memory error during prerendering #72

Closed tobiasdiez closed 2 months ago

tobiasdiez commented 2 months ago

Using this template without any modifications and running pnpm build yields the following error for me:

✔ Server built in 6554ms                                                       12:54:01   
ℹ Initializing prerenderer                                               nitro 12:54:01   

[12:54:07]  WARN  "file:///D:/Programming/nuxt-storybook/node_modules/.pnpm/nuxt@3.12.2_@opentelemetry+api@1.9.0_@parcel+watcher@2.4.1_@types+node@20.14.9_encoding@0.1.1_3zsdl4sqthzahrwny7yead4cli/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js" is imported by "virtual:#internal/nitro/virtual/storage", but could not be resolved – treating it as an external dependency.

<--- Last few GCs --->

[45352:000001DEFC302000]    82717 ms: Mark-Compact 4053.5 (4135.0) -> 4051.6 (4135.0) MB, pooled: 0 MB, 1005.33 / 0.00 ms  (average mu = 0.429, current mu = 0.129) allocation failure; scavenge might not succeed
[45352:000001DEFC302000]    85214 ms: Mark-Compact 4067.3 (4135.0) -> 4065.5 (4163.3) MB, pooled: 0 MB, 2487.50 / 0.00 ms  (average mu = 0.184, current mu = 0.004) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

 1: 00007FF63179CB6B node::SetCppgcReference+16011
 2: 00007FF631709C94 DSA_meth_get_flags+87572
 3: 00007FF632374261 v8::Isolate::ReportExternalAllocationLimitReached+65
 4: 00007FF632361086 v8::Function::Experimental_IsNopFunction+2918
 5: 00007FF6321AB270 v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+31584 
 6: 00007FF6321A82BD v8::internal::StrongRootAllocatorBase::StrongRootAllocatorBase+19373 
 7: 00007FF6321BD9C4 v8::Isolate::GetHeapProfiler+7428
 8: 00007FF6321BE24A v8::Isolate::GetHeapProfiler+9610
 9: 00007FF6321CECA7 v8::Isolate::GetHeapProfiler+77799
10: 00007FF631E8DCFB v8::internal::Version::GetString+434971
11: 00007FF5D23ED5BA
 ELIFECYCLE  Command failed with exit code 134.

I also tried to play around with upgrading some of the dependencies but to no avail. Real life reproduction: https://github.com/nuxt-modules/storybook/pull/668

benjamincanac commented 2 months ago

Closing this as it's not related to @nuxt/ui-pro, see https://github.com/nuxt-modules/storybook/pull/668#issuecomment-2203028305.