You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot be reproduced outside of current environment/project. However this thread seems to indicate far more devs have had this issue: #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 present
This 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.
npx --max-old-space-size=4096 vue-cli-service serve --mode development --dashboard
INFO Starting development server...
Starting type checking service...
Using 1 worker with 2048MB memory limit
65% building 639/687 modules 48 active ...node_modules\core-js\modules_shared.jsBrowserslist: caniuse-lite is outdated. Please run next command npm update
98% after emitting vue-cli-dashboard-plugin
DONE Compiled successfully in 46972ms 12:51:03 PM
No type errors found
Version: typescript 4.5.4
Time: 11382ms
WARN
Couldn't parse bundle asset "C:\Users\Douglas\Documents\01 Programming\Platt\Sales\Sales.Frontend\dist\js\0.js".
Analyzer will use module sizes from stats file.
<--- Last few GCs --->
[7572:00A40598] 50576 ms: Scavenge 842.4 (1005.1) -> 842.0 (1007.9) MB, 1.5 / 0.0 ms (average mu = 0.988, current mu = 0.863) allocation failure
[7572:00A40598] 50725 ms: Mark-sweep (reduce) 842.0 (1007.9) -> 837.2 (989.3) MB, 148.9 / 0.0 ms (average mu = 0.962, current mu = 0.461) last resort GC in old space requested
[7572:00A40598] 50898 ms: Mark-sweep (reduce) 837.2 (977.3) -> 835.8 (965.8) MB, 173.1 / 0.0 ms (average mu = 0.906, current mu = 0.000) last resort GC in old space requested
The text was updated successfully, but these errors were encountered:
douglasg14b
changed the title
JavaScript head out of memory only when serving via Vue UI ( --dashboard argument causes issue )
JavaScript heap out of memory only when serving via Vue UI ( --dashboard argument causes issue )
Jan 10, 2022
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: #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.The text was updated successfully, but these errors were encountered: