Closed
Description
When tried to fix #7 using the vite config (rollup plugin) in the production mode, getting fatal error:
npm run build
> react2solid@0.0.1 build /home/me/react2solid
> vite build
vite v2.9.1 building for production...
✓ 47 modules transformed.
✓ 95 modules transformed.
transforming (1195) node_modules/monaco-editor/esm/vs/base/parts/quickinput
<--- Last few GCs --->
[31400:0x4cf2760] 35095 ms: Scavenge 2043.9 (2050.6) -> 2043.0 (2052.6) MB, 3.6 / 0.0 ms (average mu = 0.308, current mu = 0.299) allocation failure
[31400:0x4cf2760] 36464 ms: Mark-sweep 2045.0 (2052.6) -> 2043.2 (2052.9) MB, 1365.3 / 0.0 ms (average mu = 0.190, current mu = 0.012) allocation failure scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa295b0 node::Abort() [node]
2: 0x9782df node::FatalError(char const*, char const*) [node]
3: 0xb999be v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb99d37 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd3a145 [node]
6: 0xd3aaeb v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
7: 0xd488e2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xd49735 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xd4c0fc v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd1b79b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x104bb5f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x13a5839 [node]
Aborted (core dumped)
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! react2solid@0.0.1 build: `vite build`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the react2solid@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/me/.npm/_logs/2022-04-11T14_43_56_433Z-debug.log
Metadata
Metadata
Assignees
Labels
No labels