# Build error in cordova-custom-config

### Incident

In the application build, an infinite loop occurs, resulting in the error "JavaScript heap out of memory".

### Cause&#x20;

The npm package "colors" was released with a bug that caused an infinite loop. The plugin "cordova-custom-config" also uses the npm module "colors", causing the bug.

### How to fix it&#x20;

The error has been fixed and "cordova-custom-config" v5.1.1 has been released. You can select the plugin version on the Cordova plugin settings page.

![](https://3091308003-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MfWe1U2tFctp8FkP9W8%2Fuploads%2Fpv85i0UMm3C4V5YCPYuU%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202022-01-11%2015.56.29.png?alt=media\&token=a51a9daa-2df3-4ea0-83d3-c7b3e9b03a1d)

If the problem occurs with a plugin other than "cordova-custom-config", you can avoid using the version that contains the bug by modifying "package.json" in the root directory of the Monaca project as follows.

```
"dependencies": {
  ・・・
  "colors": "1.4.0",
  ・・・
}
```
