Closed
Description
I have an error:
docker run -p 24900:24900 riccoxie/meilisearch-ui:latest
> meilisearch-ui@0.12.2 build /opt/meilisearch-ui
> vite build
♻️ Generating routes...
✅ Processed routes in 168ms
vite v6.2.1 building for production...
transforming...
<--- Last few GCs --->
[19:0xffffb3e30000] 14415 ms: Mark-Compact 982.8 (1008.0) -> 982.8 (1008.0) MB, pooled: 0 MB, 169.73 / 0.00 ms (average mu = 0.205, current mu = 0.171) background allocation failure; GC in old space requested
[19:0xffffb3e30000] 14619 ms: Mark-Compact 982.8 (1008.0) -> 982.8 (1008.0) MB, pooled: 0 MB, 168.33 / 0.00 ms (average mu = 0.190, current mu = 0.174) background allocation failure; GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xddb880 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
2: 0x1150a0c v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
3: 0x1150bbc v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
4: 0x137544c [node]
5: 0x137547c [node]
6: 0x138ce60 [node]
7: 0x138fa4c [node]
8: 0x1b74624 [node]
Aborted
ELIFECYCLE Command failed with exit code 134.
> meilisearch-ui@0.12.2 preview /opt/meilisearch-ui
> vite preview
♻️ Generating routes...
✅ Processed routes in 306ms
error when starting preview server:
Error: The directory "dist" does not exist. Did you build your project?
at preview (file:///opt/meilisearch-ui/node_modules/.pnpm/vite@6.2.1_@types+node@22.13.10_jiti@2.3.3_sass@1.85.1_tsx@4.19.3_yaml@2.5.1/node_modules/vite/dist/node/chunks/dep-glQox-ep.js:53449:11)
at async CAC.<anonymous> (file:///opt/meilisearch-ui/node_modules/.pnpm/vite@6.2.1_@types+node@22.13.10_jiti@2.3.3_sass@1.85.1_tsx@4.19.3_yaml@2.5.1/node_modules/vite/dist/node/cli.js:911:22)
ELIFECYCLE Command failed with exit code 1.
Looks like not enough memory, I have 2G in resources, how much doesn't it need?