whoisthiru
whoisthiru
NNuxt
Created by Chad Fraser on 4/4/2024 in #❓・help
Receiving "JavaScript heap out of memory" when nitro is building. The application built perviously.
You have to update your package.json file’s scripts section with the dev command I’ve shared. Then execute npm run dev from command line.
9 replies
NNuxt
Created by Chad Fraser on 4/4/2024 in #❓・help
Receiving "JavaScript heap out of memory" when nitro is building. The application built perviously.
I use NODE_OPTIONS=--max_old_space_size=8192 to increase the heap memory, when running, nuxt build, nuxt generate, nuxt dev Here is my package.json depicting this.
"scripts": {
"build": "NODE_OPTIONS=--max_old_space_size=8192 nuxt build",
"dev": "NODE_OPTIONS=--max_old_space_size=8192 nuxt dev --host",
"test": "vitest",
"generate": "NODE_OPTIONS=--max_old_space_size=8192 nuxt generate",
"scripts": {
"build": "NODE_OPTIONS=--max_old_space_size=8192 nuxt build",
"dev": "NODE_OPTIONS=--max_old_space_size=8192 nuxt dev --host",
"test": "vitest",
"generate": "NODE_OPTIONS=--max_old_space_size=8192 nuxt generate",
9 replies