Open ceciliaporro opened 2 years ago
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
You may have been hitting the memory limit Node itself has / may not be a lwc dev server issue.
You could test theory by running below to set a higher memory limit for Node prior to starting the server:
env NODE_OPTIONS=--max_old_space_size=4096 sfdx force:lightning:lwc:start
More info: https://stackoverflow.com/a/38560292/1705082 https://github.com/nodejs/node/issues/18889
This issue has been automatically marked as type:bug-p3
because it has not had recent activity.
Describe the bug Trying to install lwc-dev-server using the command "sfdx plugins:install @salesforce/lwc-dev-server", I get the error: "FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory"
To Reproduce Steps to reproduce the behavior:
Expected behavior Running sfdx plugins --core, I should see the plugin lwc-dev-server and be able to start it up. Screenshots
Desktop (please complete the following information):
Additional context I was trying to launch dev server to preview and complete a trailhead badge. Trying to start up using VScode sfdx command: preview component locally, it tells me to install plugin "lwc-dev-server". Then, when I try to install it, this happens. Found nothing on the web related to this bug.