logue/vite-vuetify-ts-starter

I use your starter to develope but it always stop running during hmr

ZuulAndRibbon opened this issue · 2 comments

vite will stop and console record this:
Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
at new NodeError (node:internal/errors:371:5)
at Worker.[kOnExit] (node:internal/worker:276:26)
at Worker..onexit (node:internal/worker:198:20)
Emitted 'error' event on Worker instance at:
at Worker.[kOnExit] (node:internal/worker:276:12)
at Worker..onexit (node:internal/worker:198:20) {
code: 'ERR_WORKER_OUT_OF_MEMORY'
}

every time i run the project again but i will occur again after some time. how can i do this? u use node to do what?

logue commented

I have confirmed that this phenomenon occurs frequently after Node 18.

I don't know if it is a specification, but since the cause is memory, try increasing the allocation amount with environment variables (NODE_OPTIONS) and execution parameters.

--max_old_space_size={MB}