Open douglasg14b opened 2 years ago
Given when the error happens, after building, and only when the --dashboard
flag is present (Which enables IPC to cli-ui nodejs server
) is this issue occurring in another process?
What further debugging can be done to figure out where/how/why this is occurring, and what workarounds are available?
I have increased node memory limits with environmental variables (NODE_OPTIONS
| --max-old-space-size=2048
), however it seems like w/e node process the CLI is using ignores those. As it keeps failing at ~1GB, despite the heap size being increased to 2GB.
Running npm run serve --node-arg='--max-old-space-size=2048'
also seems to ahve no effect, I even went into node_modules/.bin
and changed all calls to node.exe
to be node.exe --max-old-space-size=2048
. Still it fails around 1GB, which is the default...
If you are using Windows like me, you can try to use cross-env NODE_OPTIONS=--max-old-space-size=4096 node 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' run serve
Version
4.5.12
Environment info
Steps to reproduce
Cannot be reproduced outside of current environment/project. However this thread seems to indicate far more devs have had this issue: https://github.com/vuejs/vue-cli/issues/1453
Only occurs when running serve through the Vue UI. It appears that the
--dashboard
argument triggers this problem. Without it, serving runs just fine.What is expected?
That the vue cli operates as expected when serving
What is actually happening?
It builds, and then crashes. But only when the
--dashboard
argument is presentThis problem cropped up after adding TypeScript support, and upgrading most of our packages. I have been unable to narrow it down to anything specific.
Build Log/Error:
NOTE: I added
--max-old-space-size=4096
in an attempt to resolve the issue, it did not have any effect.