vite-vuetify-ts-starter
vite-vuetify-ts-starter copied to clipboard
I use your starter to develope but it always stop running during hmr
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.
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?
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}
Related: https://github.com/vitejs/vite/issues/2433