microsoft / Msdyn365.Commerce.Online

Dynamics 365 Commerce online project
Other
49 stars 41 forks source link

Error on the run pipeline on CI #35

Closed VDinets closed 2 years ago

VDinets commented 2 years ago

Good day. After the last update to version 9.32, I get an error almost everyone runs the build pack pipeline. FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

I use this article to setup the pipeline https://docs.microsoft.com/en-us/dynamics365/commerce/e-commerce-extensibility/set-up-code-sharing-build-pipeline.

mkelan commented 2 years ago

Hi @VDinets thanks for reporting. i have logged a bug to fix the documentation. meanwhile, please try the following recommendation

The default memory setting should be sufficient for most of the customization scenarios. However, if your application needs more heap space, you can specify the environment variable in scripts section of the package.json

SET NODE_OPTIONS=--max_old_space_size=4096

"build": "SET NODE_OPTIONS=--max_old_space_size=4096 && yarn msdyn365b build --use-eslint",

samjarawan commented 2 years ago

Just FYI that the documentation is now updated.

VDinets commented 2 years ago

fixed