logue / vite-vuetify-ts-starter

@vitejs + @vuejs 3+@Vuetifyjs 3
MIT License
170 stars 37 forks source link

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

Open ZuulAndRibbon opened 2 years ago

ZuulAndRibbon commented 2 years ago

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 2 years ago

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 commented 2 years ago

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