I have a fairly small site (around 69 pages) which was building just fine with astro@2.0.0 with the default memory (2096 MB on my machine).
Recently, I tried to migrate to astro@2.0.6. astro build threw the following error.
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF73592012F node_api_throw_syntax_error+175407
2: 00007FF7358A5AF6 SSL_get_quiet_shutdown+63110
3: 00007FF7358A6EB2 SSL_get_quiet_shutdown+68162
4: 00007FF73633FF24 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 00007FF73632B282 v8::Isolate::Exit+674
6: 00007FF7361AD0DC v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 00007FF7361AA2FB v8::internal::Heap::CollectGarbage+3963
8: 00007FF7361C0533 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
9: 00007FF7361C0DDD v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
10: 00007FF7361C972A v8::internal::Factory::AllocateRaw+810
11: 00007FF7361DCB6D v8::internal::FactoryBase<v8::internal::Factory>::NewHeapNumber<0>+685
12: 00007FF7361E1018 v8::internal::FactoryBase<v8::internal::Factory>::NewRawTwoByteString+72
13: 00007FF7361D7676 v8::internal::Factory::NewStringFromTwoByte+262
14: 00007FF7361D76DA v8::internal::Factory::NewStringFromTwoByte+26
15: 00007FF73604FE8E v8::internal::Intl::CompareStrings+37406
16: 00007FF735FF959D v8::internal::LookupIterator::wasm_value_type+106925
17: 00007FF735FFAB21 v8::internal::JSV8BreakIterator::GetAvailableLocales+4433
18: 00007FF7362DC9A4 v8::internal::Builtins::code+133284
19: 00007FF7363DD6C1 v8::internal::SetupIsolateDelegate::SetupHeap+558449
20: 00007FF7363AE212 v8::internal::SetupIsolateDelegate::SetupHeap+364738
21: 00007FF6B71A5926
A retry with 4GB memory gave the same error. I was finally able to build the site at 6GB memory allocation but this seems a huge regression to me.
Open a New Issue