ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: minemis on December 13, 2020, 09:10:08 am

Title: Unable to build problems in Vue environment
Post by: minemis on December 13, 2020, 09:10:08 am
Hello, my Vue project can run normally in the development environment after introducing pqgrid, but the project cannot be packaged. How can I solve this problem?
Title: Re: Unable to build problems in Vue environment
Post by: paramvir on December 14, 2020, 10:02:14 am
Please mention the details of the issue you are facing while packaging.
Title: Re: [Vue]Unable to build problems in Vue environment
Post by: minemis on December 14, 2020, 01:46:11 pm
After executing "NPM run build", you are stuck in the "building for production..." step all the time, and then an error is reported after waiting for a long time. When the pqgrid and related dependencies are not added, the "NPM run build" command can be executed normally. The error information is shown in the figure:
Title: Re: Unable to build problems in Vue environment
Post by: paramvir on December 14, 2020, 03:05:35 pm
This post might be helpful to increase the memory:

https://stackoverflow.com/questions/55842735/javascript-heap-out-of-memory-when-building-vue-js-app
Title: Re: Unable to build problems in Vue environment
Post by: Walltech on January 18, 2021, 08:29:39 am
I have also encountered this problem.I already tried to increase the memory by adding --max_old_space_size=4096 and even tried to change it to 8192, but to no avail. I am using a Windows with 8 GB of RAM so I'm not sure why this is happening.
Have you solved it?
Title: Re: Unable to build problems in Vue environment
Post by: paramvir on January 18, 2021, 11:01:05 am
Please use this command on terminal to increase the memory for current terminal session

Code: [Select]
set NODE_OPTIONS=--max_old_space_size=4096

or this to save it permanently.

Code: [Select]
setx NODE_OPTIONS --max_old_space_size=4096