vite-vuetify-ts-starter icon indicating copy to clipboard operation
vite-vuetify-ts-starter copied to clipboard

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

Open ZuulAndRibbon opened this issue 2 years ago • 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?

ZuulAndRibbon avatar Jul 06 '22 11:07 ZuulAndRibbon

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}

logue avatar Jul 08 '22 00:07 logue

Related: https://github.com/vitejs/vite/issues/2433

logue avatar Jul 13 '22 09:07 logue